Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 running speed
#1
I created a generator which generates variables i need to analyze. This generator is about 500 lines, it contains an list and about 20 variables doing all the job for the final outcome. It's a simple code with 2 for and a lot of if. My problem is that it takes a lot of time to run, for instance, if i try to create an list by the generator it needs 40 minutes ot so for an 100000 lenght list. Apart from running it at a better computer, is there anything i can do to make it faster?
Quote
#2
How To Make Your Code Run Faster
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
Quote
#3
Without code, we can't tell you anything.
My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)