vscode-emacs-mcx
vscode-emacs-mcx copied to clipboard
Improve performance
Measure first:
- Is GC working expectedly? Are unused objects released expectedly? Are objects attached to released editor object released correctly?
- Where is slow?
Possible fixes
- Defer instantiating the command classes
- For some commands which are not often used, we should instantiate them (
new TheCommandClass()
) when the command is called for the first time instead of inside theEmacsEmulator
's constructor.
- For some commands which are not often used, we should instantiate them (
Maybe related to #1308