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

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

Thread Previous | Thread Next
Karl Williamson
December 1, 2016 18:41
Re: DAVEM TPF grant#2 report #149,#150,#151
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About