[Help] How to Improve Json Output Performance with Large Json Arrays #1624
Labels
kind: question
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Hey everyone,
I have
class A
which includes astd::deque<class B>
.Both
A
andB
have anAsJson()
that return a json object, whereA
'sAsJson
pushes back many instances ofB
onto an array, and later on I print this Json as a string.Constructing the large Json takes a bit of memory and time and then the whole things needs to be processed again to format to a string as well.
Is there a better way to handling constructing and outputting Jsons with large arrays with this library?
Thanks!
The text was updated successfully, but these errors were encountered: