Improve startup time of REPL

Somebody shared some way to improve the startup time of the REPL on Zulip and JuliaNotes.

The person notes, to have brought down the startup time from 2.5 seconds to 0.1 seconds.

The implementation in JuliaNotes is actually different to that one that is referred to be the original.

The original on Zulip prevents my REPL from staying open, and throws me back into the shell.

The variant in JuliaNotes actually slows it down for me.
The add statement there lacks [ ], be aware about that. I already send a correcting PR.

It’s not clear to me what you’re trying to say here or what sort of discussion you want to have in this topic. Are you after a way to load OhMyREPL and Revise faster at startup?

1 Like

First, I want to prevent that people reach the example on JuliaNotes, and run into the same issue as I do.

Both the initial installation expression, and the configuration itself seem to be not tested.
I personally think, this could throw a bad lightning at us.

Secondly, yes, I think if that is working, it could certainly increase the responsiveness of the Julia REPL. The suggested numbers seem quite high. :slight_smile:

Thanks a lot

If you want you can follow the indications in the docs from the Revise package on how to use it by default. Also, the docs of OhMyRepl also explains how to automatically start it when launching a REPL.

Personally, I don’t find the REPL startup time nor its responsiveness to be an issue while using both, Revise and OhMyRepl. And that is a lot to say given that I tend to use Julia quite regularly on a laptop from 2014 (give or take) with a Pentium CPU.

You can always refer back to the documentation of the official packages you are trying to use.

2 Likes

Thanks for pointing that. Indeed, those tips were useful before code cashing, probably, and are not anymore.

I’ve removed the section and updated it to what I’m currently using in my startup.jl.

3 Likes