develooper Front page | perl.perl5.porters | Postings from December 2016

Re: DAVEM TPF grant#2 report #149,#150,#151

Thread Previous | Thread Next
From:
Karl Williamson
Date:
December 1, 2016 18:41
Subject:
Re: DAVEM TPF grant#2 report #149,#150,#151
Message ID:
414f794f-8ab7-4c62-259b-d7b091f3fb4d@khwilliamson.com
On 11/28/2016 02:18 AM, Dave Mitchell wrote:
> I've also been looking into whether the lexer's token recogniser
> (keywords.c) could be done in a different way: the current approach, as
> used for the last 10 years, generates a custom code-driven trie, which uses
> very few CPU instructions; but these days branch prediction is more important,
> and that code style kills branch prediction. I suspect that a data-driven
> trie will perform better now.

I would be surprised if speeding this up would have much effect on 
programs, except for possibly string evals in an inner loop.  Am I wrong?

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About