4x faster strlen with 4 char sentinel
Ola Fosheim Grøstad via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Mon Jun 27 14:50:18 PDT 2016
On Monday, 27 June 2016 at 21:41:57 UTC, Jay Norwood wrote:
> measurements. I'm using a 100KB char array terminated by four
> zeros, and doing strlen on substring pointers into it
> incremented by 1 for 100K times.
But this is a rather atypical use case for zero terminated
strings? It would make more sense to test it on a massive amount
of short strings stuffed into a very large hash-table.
(filenames, keys, user names, email adresses etc)
More information about the Digitalmars-d-announce
mailing list