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

dennis luehring via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 8 11:21:06 PDT 2014


Am 07.06.2014 01:50, schrieb Brian Schott:
> 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.
>

thats why im always puzzled when people start to optimze algorithms 
based on DMD results - currently one should always compare any results 
before optimization with GDC/LDC


More information about the Digitalmars-d mailing list