What's going on with std.experimental.lexer?

Brian Schott via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 6 16:50:39 PDT 2014


On Friday, 6 June 2014 at 00:33:23 UTC, Brian Schott wrote:
> Implementing some SIMD code just in the lexWhitespace function 
> causes a drop in total lexing time of roughly 3.7%. This looks 
> promising so far, so I'm going to implement similar code in 
> lexStringLiteral, lexSlashStarComment, lexSlashSlashComment, 
> and lexSlashPlusComment.

Some moe numbers:

SIMD reduces execution time by 5.15% with DMD.
Compiling the non-SIMD code with GDC reduces execution time by 
42.39%.

So... There's that.


More information about the Digitalmars-d mailing list