Re:Why Python is Slow: Looking Under the Hood
by ape4 on Friday May 09, 2014 @12:00PM
(#7721564)
This is hardly breakthru stuff.
[ Parent
| on HN ]
True. It also never claims to be.
The very first part says that this is only a writeup for people who are not intimately familiar with why "dynamically typed" might slow down Python.
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.
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.