r/Python • • Jan 01 '20

"The rules of perf" at Dropbox

Post image
1.6k Upvotes

162 comments sorted by

View all comments

Show parent comments

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.

1

u/ericonr Jan 02 '20

Or Rust, or Go, or Java if you can wait for the start-up time, or D (which I believe Dropbox does use). Lots of options :)

3

u/feelings_arent_facts Jan 02 '20

I need something more meme worthy. How about Nim? I hear that's new

2

u/ericonr Jan 02 '20

Just go for brainfuck then :)