Closed KristofferC closed 1 month ago
Adding
Base.precompile(Tuple{typeof(Base.keys), Base.Dict{String, Base.Dict{String, Pkg.REPLMode.CommandSpec}}})
Base.precompile(Tuple{typeof(Base.getproperty), Base.KeySet{String, Base.Dict{String, Base.Dict{String, Pkg.REPLMode.CommandSpec}}}, Symbol})
Base.precompile(Tuple{Type{Pkg.REPLMode.QString}, String, Bool})
Base.precompile(Tuple{typeof(REPL.LineEdit.complete_line), REPLExt.PkgCompletionProvider, REPL.LineEdit.PromptState})
makes the lag when typing on the Pkg repl go away.
The last two of those are already in this PR and the first two are pretty much instant to compile so I don't think those make a difference in practice. Also, in this PR, typing in the REPL seems instant to me.
Oh I missed the complete_line one (I imagine it's the one that makes a difference)
Measurement:
Before:
After
On 1.10 we have