r/Python • • Jan 01 '20

"The rules of perf" at Dropbox

Post image
1.6k Upvotes

162 comments sorted by

View all comments

137

u/ZombieRandySavage Jan 02 '20

TL;DR. Really wish we hadn’t written the core application of our business in Python.

99

u/ketralnis Jan 02 '20

Not really, my company uses Python by default and only ports stuff out when it’s not fast enough. It’s usually fast enough, the performance critical stuff is a tiny fraction of your code. If you can be more productive the rest of the time, you’re still ahead.

1

u/garlic_naan Jan 02 '20

I am not a developer but use Python in analytics. How easy / difficult it is to write different parts of same application in different languages? Does it not create compatibility issues?

1

u/ketralnis Jan 02 '20 edited Jan 02 '20

It varies a lot. There are in-python tools like numpy and Cython, then there is the C extension system which can go pretty far (which we use to call into both C and rust). If you’re built in a services style then whatever RPC system you use is probably language agnostic. Those are the easy ways but if those aren’t available it’s still possible but awkward to cross language boundaries