Add PrecompileTools, precompile runserver#1218
Conversation
|
I'm not sure why Project.toml got rearranged, but it should only be adding PrecompileTools.jl |
|
|
Nice. The small amount of residual compilation described in https://discourse.julialang.org/t/precompiling-languageserver-runserver-with-precompiletools-jl/97926 might be fixable by |
|
Very cool! Did you time the difference in startup time? And yes, we initialize the LS with |
|
If printing doesn't have to be high performance, |
In https://discourse.julialang.org/t/precompiling-languageserver-runserver-with-precompiletools-jl/97926, he shows that |
davidanthoff
left a comment
There was a problem hiding this comment.
Fantastic! I'd say we can merge right away. I'll add PrecompileTools to the extension later today with our submodule way of loading things.
Also, we can probably improve a lot on this, because just running the server probably only executes a relatively small fraction of the code. But let's do that in follow up PRs.
|
Can be silenced? (I assume it comes from this PR) |
|
I'm missing the part of the error stack trace that connects it with this pull request. Does this happen during precompilation? |
|
Yes |
|
One option from the code below is to set an error handler. Otherwise, we'll need to modify the LanguageServer.jl/src/languageserverinstance.jl Lines 293 to 299 in 198e07e |
|
Is it just me or does the language server always end with an error? LanguageServer.jl/src/languageserverinstance.jl Lines 287 to 290 in 198e07e |
Add PrecompileTools to and precompile
runserver.For every PR, please check the following: