Python Forum

Full Version: running speed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Without code, we can't tell you anything.