Boost logo

Boost Users :

Subject: Re: [Boost-users] How to improve property_tree performance
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2010-10-18 08:38:36


> I've never done a performance analysis of PTree (I hardly have time to
> get the docs up to date with the actual library), so I don't know what
> is fast and what is slow. PTree is definitely not a fast library. I have
> some ideas about how to make it faster, but that would take essentially
> a reimplementation of the ptree class.

ptree uses std::list internally, right? I think it would be worth to use
e.g. boost::ptr_deque or boost::ptr_vector (or a similar scheme) to
reduce the number of heap allocations somewhat.

-Thorsten


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net