|
Boost : |
Subject: Re: [boost] shared_ptr/shared_count and the cost of use counter allocation
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2008-09-09 02:05:07
Hi Hendrik !
An'n Montag 08 September 2008 hett Hendrik Schober schreven:
> Is there a way for me to tweak 'shared_ptr's performance other than
> by again forking into a proprietary smart pointer and introducing
> allocators for that one? or is there any interest in the boost
> community for doing this?
just #define BOOST_SP_USE_QUICK_ALLOCATOR for some speed optimisations.
This will use a pool for allocating the shared count. Grep the shared_ptr
sources for more information.
Hope this helps...
Yours,
Jürgen
-- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold_at_[hidden] ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk