6 ms·
>in Python it's quite difficult even to reason about what's going to be in L1 The interpreter's stack?
by smitherfield 9y ago
>in Python it's quite difficult even to reason about what's going to be in L1
The interpreter's stack?
- _dps 9y agoI haven't looked at it in a while, so I could be wrong, but I think with small enough programs you can still squeeze some payload into L1 in long tight loops where you're not jumping up and down the Python stack a lot. But your overall point stands: if you're writing non-trivial Python programs your L1 is usually spent on language/runtime overhead.
- kevin_thibedeau 9y agoWhen such things matter you drop to Cython and avoid interacting with PyObjects. Then you get native performance for tight loops.