by _dps · 8y ago · 0 comments
Secondly, Python and the patterns its expressiveness encourages are terrible for cache performance. In a simple C program it's easy to do something non-trivial in the space provided by L1 cache — in Python it's quite difficult even to reason about what's going to be in L1 if you're using any of the fancy features.
Scientific computing, on the other hand, is a completely different animal.
The interpreter's stack?
But your overall point stands: if you're writing non-trivial Python programs your L1 is usually spent on language/runtime overhead.