This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] mt_allocator performance improvements
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, david at bozemanpass dot com, Richard Guenther <richard dot guenther at gmail dot com>
- Date: Thu, 16 Mar 2006 18:06:58 +0100
- Subject: Re: [v3] mt_allocator performance improvements
- References: <20060315215545.61a6eed0.bkoz@redhat.com>
All, Richard,
I suspect today's crazy exchange is ultimately due to this line in the
performance improvement:
- --__bin._M_used[__block->_M_thread_id];
+ --__thread_bin._M_used;
which, at the moment, I cannot convince myself is right, i.e., changes
*only* the details of the implementation of the allocator without
affecting the algorithm.
Paolo.