I’m embarrassed to ask given that the phrase is used so often, but I was hoping someone could clarify the phrase time to first plot for me. My understanding is that the first time that a script is run that it can take a while to run because the code is being compiled; however, subsequent runs will be much, much faster as by that time the JIT compiler has done all the hard work.
My confusion is about when this applies. Is this only the case when repeatedly running a script at the REPL? Or, if I have a script — say myscript.jl
— and I run it using julia myscript.jl
at the command line, will it be slow the first time and quick thereafter? Or will it be slow each time, as it is considered to be the first time the script is run since it starts a new Julia session each time?