Proposal for SentinelInputRange

Jacob Carlborg doob at me.com
Thu Feb 28 07:00:49 PST 2013


On 2013-02-28 15:47, Artur Skawina wrote:

> Define "fast". Lexing std.datetime takes at most ~10-20ms (possibly a single-digit
> ms number, but i'd need to write some code to check the actual number). Smaller
> objects take proportionally less. Meaning you'll be I/O bound, even /one/ (disk)
> cache miss will have more impact then these kind of optimizations.
> Lexing a hundred small files or one 100x as big file is basically the same operation;
> the difference will be in I/O + setup/teardown costs, which will be /outside/ the
> lexer, so aren't affected by how it accesses input.

You'll have to convince Walter.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list