[Algorithms] Re: XML Parsers
Brought to you by:
vexxed72
From: John R. <jra...@in...> - 2005-03-29 16:22:19
|
You can also go to www.physicstools.org Download the alpha 2.0 version Novodex Rocket. After you install it, look for the source code to tiny xml. This version has ripped out the STL and traps every single memory allocation with a call to a user provided allocator. This source is not too horribly borked up and should be very easy to refactor. As the other poster indicated, once you have trapped all of the memory allocations you can speed them up by using your own custom pool allocation strategy. Mårten Svanfeldt (dev) writes: > Quoting Stephen J Baker <sj...@li...>: > >> Jorrit Tyberghein wrote: >> > On Thu, 24 Mar 2005 07:42:29 -0600, John Ratcliff >> > <jra...@in...> wrote: >> > >> >>I use TinyXML. This is a DOM C++ parser and it very easy to drop into your >> >>tools chain. I suppose it could be 'faster' but it seems very stable and >> is >> >>easy to integrate. >> > >> > >> > In Crystal Space we use tinyxml too but we modified it heavily to get >> > any decent speed with large files. With our modifications we can now >> > parse a 25 meg XML file in about 12 seconds (on a P4). Before that it >> > was very bad. Biggest problem was huge amounts of memory allocations. >> > We solved that by using pools. >> >> So - in the best spirit of OpenSource libraries - have you offered your >> changes back to the community? I'd really like to get a hold of a faster >> version. >> >> ----------------------------------------------------------------------- >> The second law of Frisbee throwing states: "Never precede any maneuver >> by a comment more predictive than "Watch this!"...it turns out that >> this also applies to writing Fragment Shaders. >> ----------------------------------------------------------------------- >> Steve Baker (817)619-2657 (Vox/Vox-Mail) >> L3Com/Link Simulation & Training (817)619-2466 (Fax) >> Work: sj...@li... http://www.link.com >> Home: sjb...@ai... http://www.sjbaker.org >> > > Well, Crystal Space is OpenSource itself (LGPL licensed) so yes. However some of > the modifications we've done is Crystal Space specific (using Crystal Space > classes etc), but feel free to look at what we've done. > > -Marten > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&opclick > _______________________________________________ > GDAlgorithms-list mailing list > GDA...@li... > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_ida88 |