std.d.lexer requirements

Jacob Carlborg doob at me.com
Fri Aug 3 00:11:32 PDT 2012


On 2012-08-03 08:59, Walter Bright wrote:

> You don't need to extract it to measure it. Just have it lex the source
> files in a loop, and time that loop.

Well, that's the problem. It's not like DMD has a single "lex" function 
that does all the job.

Would it perhaps be possible to time Parser::parseModule and remove all 
things that doesn't seem related to lexing?

Remove stuff like:

a = new Identifiers();
md = new ModuleDeclaration(a, id, safe);

And similar.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list