I am quite concern about performance. So, I am creating this as a question regarding the latency while calling or importing a package at first time. It might be a silly question.
When the first time I add package for ex, Plots, it consumes some amount of time to build the package.
Again when i import the package first time ever on my notebook that also took some time (~1 min) says Precompiling message
After importing the package, when I hit plot() this also consumes some time (30s - 60s) and finally returns a plot.
Once I used plot function, whenever I use next time it's not taking much time to produce result.
This latency happens whenever I restart a notebook.
I guess it's compiling functions before execution. Because unlike python, julia is not a scripting language. So, it supposed to undergo compilation. But, Why the latency occurs every time when I restart notebook?
Is there anyway I can suppress this latency? Is there anyway I can precompile everything once so that next time on wards I don't see any latency without worrying about kernal restart in notebook or in Julia Terminal. Why does the latency happen? Is it fully because of compilation time or it depends on my machine?