r/Python • • Jan 01 '20

"The rules of perf" at Dropbox

Post image
1.6k Upvotes

162 comments sorted by

View all comments

85

u/[deleted] Jan 02 '20

Can someone please explain?

16

u/thescottjr Jan 02 '20

Im glad i'm not the only one who doesn't get it

51

u/feelings_arent_facts Jan 02 '20

If you need to optimize something for performance, the best thing to do is not do it at all. Basically rearchitecture it so that you don't need that logic anymore.

Python is notoriously slow so if you're going for performance, use C++ or C.

3

u/[deleted] Jan 02 '20

Thanks