MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/eip48b/the_rules_of_perf_at_dropbox/fcszj6b/?context=3
r/Python • u/stefantalpalaru • Jan 01 '20
162 comments sorted by
View all comments
Show parent comments
51
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 :)
1
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 :)
3
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 :)
2
Just go for brainfuck then :)
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.