QtJsonSerializer icon indicating copy to clipboard operation
QtJsonSerializer copied to clipboard

Poor performance for array of PODs with simple properties

Open arietto opened this issue 4 years ago • 0 comments

Hello! I have 10000 PODs. Each POD contains primitive properties, so CBOR<->QVariant conversion can be done without iterating converter "store" (more than 20 checks a-la canConvert are done before switching to default conversion). So, using helper()->serializeSubtype is expensive for primitive types. Is it possible to improve performance if we deal with simple types? I don't want to subclass converter in order to speed up conversion.

arietto avatar Mar 02 '21 14:03 arietto