3 ms·
Can you cache the solution from the last compile and check that it still works in linear time without introducing nondeterminism?
by kragen 7y ago
Can you cache the solution from the last compile and check that it still works in linear time without introducing nondeterminism?
- WalterBright 7y agoMany 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.