4 ms·
Thanks :) That matches well what I had in mind with my "a." suggestion. Now, why cannot we expect "b. Better performance thanks to enforced type letting the c
by ronjouch 12y ago
Thanks :)
That matches well what I had in mind with my "a." suggestion.
Now, why cannot we expect "b. Better performance thanks to enforced type letting the compiler do a better job"? Are the semantics of what's being discuss insufficient to provide such benefits? I'm asking that question because I read often that dynamic typing is the #1 performance hit of Python (e.g. [1]). Now that this PEP lets developers provide and enforce type, what's still in the way of reaching the level of performance of statically-typed languages?
[1] Alex Gaynor - Fast Python, Slow Python: https://www.youtube.com/watch?v=7eeEf_rAJds https://www.youtube.com/watch?v=7eeEf_rAJds
- deleted 12y ago[deleted]
- orf 12y agoI don't think the Python VM will use these as actual hints, it's mainly to help refactoring tools and people maintaining large codebases as I understand it. No type is "enforced".