KristofferC / OhMyREPL.jl

Syntax highlighting and other enhancements for the Julia REPL

Home Page:https://kristofferc.github.io/OhMyREPL.jl/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Precompilation

tfiers opened this issue · comments

Fantastic project.

When I load OhMyREPL (here, in a macro in my startup.jl), I also run a list of precompile statements: https://github.com/tfiers/dotfiles/blob/main/.julia/config/repl-trace-compile.jl

That way, I don't get those jarring delays that normally occur after the first keystrokes and output prints, just after OMR is loaded.

Would it be an idea to add such precompilation of real-world-usage¹ to OMR itself?
Using https://timholy.github.io/SnoopCompile.jl/stable/snoop_pc/, probably

¹ Main usage thing still missing from the repl-trace I linked: fzf history search

Just found #242, where the package author seems open to adding this.

Might open a PR if I have some time; or if anyone else want to give it a go based on what I linked above, feel free