Startup takes forever
Is there an existing issue for this?
- [X] I have searched the existing issues
Description of the bug
Just a simple rspell --help takes 25 seconds to respond, and I have no idea why. Any help on this would be appreciated.
Steps To Reproduce
rspell --help and time it :)
Screenshots
No response
Additional context
No response
ok, I will be looking into this
Thanks so so much!!!
The above commit didn't fix it, just made it a bit faster. All of the time loss is from requiring packages (you can use time-require for local testing). It looks like this isn't a problem when compiling to esm. The only reason I compiled to cjs is because pkg, used to compile the output into an executable file, can only handle cjs. So, we could have the files published to npm be esm, and the files used in the github action with pkg to be cjs, but then the executable files would suffer the same issue.
There's also the option of just stopping support for the precompiled binaries, they're really big anyways and were only supported as a little experiment. Not sure though, they may have some merit.