In-place extension of arrays only for certain alignment?
Steven Schveighoffer
schveiguy at gmail.com
Thu Aug 18 02:27:45 UTC 2022
On 8/17/22 10:09 PM, Ali Çehreli wrote:
> > IIRC, your data does not need to be sequential in *physical memory*,
> > which means you can use a ring buffer that is segmented instead of
> > virtually mapped, and that can be of any size.
>
> I thought about that as well. But I would like the sizes of blocks
> (Appenders?) be equal in size so that opIndex still can provide O(1)
> guarantee. (Compute the block + an offset.)
It's still O(1). You only have 2 slices to worry about.
Perhaps next beerconf we can discuss!
-Steve
More information about the Digitalmars-d-learn
mailing list