running speed - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: running speed (/thread-27029.html) |
running speed - vaggelis - May-23-2020 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? RE: running speed - pyzyx3qwerty - May-23-2020 How To Make Your Code Run Faster RE: running speed - DeaD_EyE - May-23-2020 Without code, we can't tell you anything. |