question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance Issue: Startup very slow

See original GitHub issue

Python version: 3.7.4 IPython version: 7.6.1

When start ipython from command line. It will take long time.

Python Startup:

$ time python -c exit

real	0m0.015s
user	0m0.015s
sys	0m0.000s

IPython Startup:

$ time ipython -c exit

real	0m0.523s
user	0m0.365s
sys	0m0.039s

It is slower than bpython.

I am wondering if it is possible to make optimization.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AgilentGCMScommented, Nov 1, 2021

I found this thread searching for a solution to my slow ipython startup times. My hardware is reasonably fast (28-core Intel Broadwell), and yet ipython takes so much longer than python:

$ time python -c exit

real	0m0.052s
user	0m0.018s
sys	0m0.022s

$ time ipython -c exit

real	0m2.542s
user	0m0.667s
sys	0m0.907s

I’m not loading any additional modules in ipython, and still!

0reactions
eendebakptcommented, Mar 14, 2022

@Carreau @stevenleeS0ht To test the IPython loading time I did the following:

# pip install importtime-waterfall tuna

python -X importtime -c "import IPython" 2> i.log
tuna i.log

This results in the following overview:

image

Import time is spend at various places, with some bigger components (e.g. prompt_toolkit, jedi).

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Ways to Fix Slow Boot Times in Windows 10 - MakeUseOf
1. Disable Fast Startup. One of the most problematic settings that will cause slow boot times in Windows 10 is the fast startup...
Read more >
How to Fix Slow PC Startup - Lifewire
Clear some space on your boot drive : If your boot, or C drive, is getting close to full, it can dramatically affect...
Read more >
How to Fix Slow Startup on Windows 10 | SoftwareKeep
Windows 10 startup is slow? We've compiled 7 working solutions to help you fix slow startup on Windows 10.
Read more >
How to Troubleshoot Slow Performance Issues | Dell US
This article provides information about how to troubleshoot and resolve slow performance issues with your Dell computer.
Read more >
Fix the Windows 10 Slow Boot Issue: 9 Easy Solutions
If your Windows 10 PC is booting slowly, there might be problems with your hardware or software. · Use the Windows 10 Startup...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found