Menu

Memory release of Json::value

invisigoth
2008-04-03
2013-04-22
  • invisigoth

    invisigoth - 2008-04-03

    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

     
    • invisigoth

      invisigoth - 2008-04-14

      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...)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.