Prevent slices from referencing old array after realocation?
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 27 12:11:21 PDT 2015
On Wednesday, 27 May 2015 at 07:55:29 UTC, Gr8Ape wrote:
>
You can keep an index and a count instead of a slice.
If you know your data well, you can exploit this knowledge, and
this has the potential to save you many bytes per "slice" when
dealing with large data sets.
Depending on your access patterns, it also has the potential to
be fairly more cpu-efficient.
More information about the Digitalmars-d-learn
mailing list