Re:Why Python is Slow: Looking Under the Hood
by falcolas on Friday May 09, 2014 @12:37PM
(#7721774)
Based off my own experience, dynamic typing has much less to do with slowness than the plethora of string copying which occurs in your typical python script.
[ Parent
| on HN ]
but for scientific computing with numbers - the author's target audience - dynamic typing is the main bottleneck.
Boxing and memory locality are the the main bottlenecks in scientific computations with Python, dynamic typing is orthogonal.
Re:Why Python is Slow: Looking Under the Hood
by andreasvc on Friday May 09, 2014 @02:05PM
(#7722358)
If a language is dynamically typed, it is very likely that it will use boxing, so they do not seem orthogonal to me.
Re:Why Python is Slow: Looking Under the Hood
by dragonwriter on Friday May 09, 2014 @05:27PM
(#7723344)
There's ways to avoid that, where it matters, though its a pretty common thing in naive Python/Ruby, true.