Boost logo

Boost :

Subject: Re: [boost] [thread] thread_specific_ptr performance
From: James Mansion (james_at_[hidden])
Date: 2010-01-11 15:24:32


Andrey Semashev wrote:
> Yes, that's what I did in my patch in ticket #2361. One inconvenience
> with that approach is to restrain the size of the vector if
> thread_specific_ptrs are constantly created/destroyed. I did not solve
> it in my patch but it should be quite doable.
>
> I really hope Anthony will take a look at it and come up with a
> vector-based solution. Or I can finish the patch myself, if it has any
> chance of getting into SVN. Anthony?
I'm just in the process of doing something much the same myself. I don't
think limiting the number of slots is really an issue in practice if you
can allow a 4k page for each thread. There's no real need for each
library to use more than one slot.

James


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk