Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Run for a Jupyter Notebook File Is Taking Too Much Time #10

Open
aritraroy24 opened this issue Jun 30, 2023 · 3 comments
Open

First Run for a Jupyter Notebook File Is Taking Too Much Time #10

aritraroy24 opened this issue Jun 30, 2023 · 3 comments

Comments

@aritraroy24
Copy link

System Configuration

Processor- i7-12700K
RAM- 32GB DDR5
GPU- None
Parallelization Enabled via CPU/GPU- No

Problem:

  • While I'm running a Jupyter Notebook for the first time each code block is taking too much time. See the following screenshot-
    image

  • Rrunning the same code second time or more is taking fraction of a second-
    image

  • Even changing the equation also took just a fraction of a second-
    image

Question:

Am I only facing the problem? or, is it common to take some time to fetch the package and run for the first time?

@Leticia-maria
Copy link
Owner

Hey @aritraroy24, what is your Julia version?

@Leticia-maria
Copy link
Owner

This is common for a variety of reasons. Compiled languages have what is called "warm up" run or "time to first X" (TTFX). Julia is a compiled language and, before version 1.9, the TTFX was a problem, but they solved that in the version 1.9. I suggest you to update your kernel and install Julia 1.9. (But yes, this is normal if you are using a previous Julia version)

@aritraroy24
Copy link
Author

@Leticia-maria , Sorry to mention the most important thing. I have Julia version 1.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants