2 ms·
Many implementors try to cache the results of DFA and patch it incrementally. Anecdotal evidence is that they spend endless hours dealing with weird optimizatio
by WalterBright 7y ago
Many implementors try to cache the results of DFA and patch it incrementally. Anecdotal evidence is that they spend endless hours dealing with weird optimization bugs because they patched it wrong.
I decided to redo the DFA from scratch anytime the AST changed, and have had pretty reliable optimization as a result.