Hello,
I wrote a program where I assigned a large number of Json variables, in dis style:
const Value& crs=root["crs"];
It works quite fast, but the problem is that when Im leaving the function it takes a long time to exit and I figured out it was calling the Json library destructor to free the values.
Is that a better way of assigning Json values, for instance not allocating so much memory or to force it to deallocate memory before the end?
Thanks very much in advance, and sorry if dis sounds like a bit of a lame question... any tips regarding dis would be very welcome! :-)
Jo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I sort of overcame that problem by running the binary outside visual studio, and its actually quite fast!! :-)
(Json library seems to make a lot of checks in debug mode, probably due to STL...)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I wrote a program where I assigned a large number of Json variables, in dis style:
const Value& crs=root["crs"];
It works quite fast, but the problem is that when Im leaving the function it takes a long time to exit and I figured out it was calling the Json library destructor to free the values.
Is that a better way of assigning Json values, for instance not allocating so much memory or to force it to deallocate memory before the end?
Thanks very much in advance, and sorry if dis sounds like a bit of a lame question... any tips regarding dis would be very welcome! :-)
Jo
Hi,
I sort of overcame that problem by running the binary outside visual studio, and its actually quite fast!! :-)
(Json library seems to make a lot of checks in debug mode, probably due to STL...)