Python Forum
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?
Reply
#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
Reply
#3
Without code, we can't tell you anything.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020