struct Location size
deadalnix
deadalnix at gmail.com
Thu May 11 23:18:17 UTC 2023
On Thursday, 11 May 2023 at 23:17:32 UTC, deadalnix wrote:
> On Wednesday, 10 May 2023 at 03:01:34 UTC, Walter Bright wrote:
>> File offset is a performance problem and also requires keeping
>> the source files in memory.
>
> Just do it once, and you can even SWAR it.
>
> https://github.com/snazzy-d/sdc/blob/master/src/source/lexwhitespace.d#L115-L137
The SWAR:
https://github.com/snazzy-d/sdc/blob/master/src/source/swar/newline.d
More information about the Digitalmars-d
mailing list