Re:Hunting Performance in Python Code: Measuring Memory Cons...
by fnord123 on Thursday June 01, 2017 @07:00PM
(#14465716)
An almost free FFI to C is one of python's best features. Using this great feature is definitely using it as intended.
Re:Hunting Performance in Python Code: Measuring Memory Cons...
by joncampbelldev on Friday June 02, 2017 @10:47AM
(#14470267)
Only if every python programmer can easily implement and distribute their own c functions for every performance hotspot they find in their program.
This is the trade-off I was talking about, you cannot trust the language itself to be performant, you have to rely on others or jump through extra hoops. It's certainly one way to ensure you won't spend the time to fix performance issues until they're really biting you (premature optimisation quote goes here).
those that fallback to native functions for performance Vs those that work on a fast VM / compilation to native code.
it seems like the former gets some quick performance wins but results in being unable to use the language as intended in any remotely hot spots.