overpy
overpy copied to clipboard
Optimize the compiler
Seems the compiler is kinda slow :(
- [ ] Implement operator optimization in parsing (do not check for operators that would've been parsed before)
- [ ] Cache results of macros if their definition has not changed (and the arguments are the same)
- [ ] Cache results of JS scripts if their file has not changed (and the arguments are the same)
- [ ] Enforce an unique rule name policy in compilation
- [ ] Modify the decompiler to output unique rule names
- [ ] Cache results of rules if they are the same (use the rule title as key)
- [ ] Add an option in the VS Code extension to display timings at the end
The slowness came from the console.log statements, lul.
Removed them all and now it's back to an acceptable speed. Putting this issue on hold until it starts to lag again (and this time it's not because of logging).