On Tuesday, 6 December 2016 15:35:33 UTC+2, Scott Lurndal wrote:
> =?UTF-8?B?w5bDtiBUaWli?= <
oot...@hot.ee> writes:
> >On Tuesday, 6 December 2016 05:25:21 UTC+2, Daniel wrote:
> >> On Monday, December 5, 2016 at 10:13:11 PM UTC-5, Daniel wrote:
> >> >
> >> > #define _DEQUESIZ (sizeof (value_type) <= 1 ? 16 \
> >> > : sizeof (value_type) <= 2 ? 8 \
> >> > : sizeof (value_type) <= 4 ? 4 \
> >> > : sizeof (value_type) <= 8 ? 2 \
> >> > : 1) /* elements per block (a power of 2) */
> >> >
> >> > >
> >> Although if I understand this correctly, it seems to be allocating in
> >> chunks of 16 bytes, which would be unhelpful for my purposes.
> >
> >Yes, 'std::deque' of Microsoft standard library is odd. Smaller chunks
> >than one L1 cache line (so 64 bytes modern times) do not make sense.
> >
>
> Don't be silly. Some processors have 128-byte cache lines. If
> one is allocating 32-bytes, there is very seldom reason to waste the
> other 32 (or 96) bytes.
Microsoft's 'std::deque' internally allocates.
vector are rare.