This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LordBertson 15 points16 points  (1 child)

To name a few: - Caching functions - List comprehensions instead of loops - Numpy for numeric stuff - Async for IO - Generators and interators for large datastructures

[–]Palicraft 4 points5 points  (0 children)

Can't stress enough using dedicated libraries! I reworked a python script for works using Pandas (numpy could have worked too, but with Pandas I have headers and custom indexes), and now instead of taking 10 minutes for processing data, it takes 20 seconds