This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Fwd: basic_string<> - useless because of its poor performance]


On Mon, Jul 09, 2001 at 05:21:45PM -0500, Loren James Rittle wrote:
> 
> In any event, we now know that we must continue to round up capacity
> to a power of 2 in order to meet the standard (from multiple sources).
> And someone (maybe you ;-) posted a better way to hook in.

I hate to quibble (actually I love it, but I hate to seem to love it)
but the standard doesn't require sizes to be a power of two, but rather
to double each time from some basis.  This means that (2^N - M) (where
M might be 16) or (L * 2^N) (where L might be 60) is OK.  Maybe that's 
what the following refers to...
 
> Anyone that finalizes the patch to go in should consider the points I
> think I got right (which followed the exchange with Ulrich on
> implementation header padding).  

Nathan Myers
ncm at cantrip dot org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]