So in my application, every .tojson() takes around 0.5+ ms to complete. The data that I’m serializing is a class object with 3 lists inside of it. I feel like this is taking way too long. Is this a known problem with jsonutility?
The lists aren’t even that big. Just filled with other class objects. Maybe 10 at max for my tests.
What are you doing with the JSON data? Are you printing it to console?
1 Like
Most JSON tools are slow.
An usual reason is that they generate lot of garbage when transforming a float into a string, or the opposite.
When we replaced float->string and string->float operations with custom/optimized ones we divided by 3 the loading/saving time