3 ms·
It's a bit unclear on why you're using JSON to pass things between main code and the task itself. I can imagine serializing/deserializing that takes quite a bit
by capableweb 5y ago
It's a bit unclear on why you're using JSON to pass things between main code and the task itself. I can imagine serializing/deserializing that takes quite a bit of CPU time compared to if you just passed native data structures, or at least something binary instead of a format meant for human introspection.
- seinecle 5y agoindeed I used Json without giving much thinking to it. Moving to byte arrays improved the performance. Thx!