Camelcade / Perl5-IDEA

Perl5 plugins for IntelliJ IDEA
https://plugins.jetbrains.com/plugin/7796-perl/
Other
407 stars 76 forks source link

Move look-ahead logic from flex to Smart Adapter #2277

Open hurricup opened 4 years ago

hurricup commented 4 years ago

Look ahead is too expensive and wasting CPU The alternative (worse one, is LRUcache for lexemes), but we will still need to lex at least once. Also create a lot of strings.

hurricup commented 4 years ago

Currently, perltidy lexing takes about 180 ms. And removing lookaheads or complex regular expressions from grammar could not improve things.