4 ms·
This question is partially address in the articles linked to at the start [1] I linked to the slide that begins to mention it, rather short though. The answer
by cjh_ 14y ago
This question is partially address in the articles linked to at the start [1]
I linked to the slide that begins to mention it, rather short though.
The answer is that we can add heuristics, but that we should also be able to solve this somewhat on a language/library level rather than only at a vm level.
[1] https://speakerdeck.com/alex/why-python-ruby-and-javascript-are-slow?slide=34 https://speakerdeck.com/alex/why-python-ruby-and-javascript-...
- joe_the_user 14y agoYeah, Perhaps if I saw/heard the talk I would get more out of it than "data-structure heuristics are the worst". It would be nice to know why they are the worst.
- makomk 14y agoPython already has a feature called __slots__ which replaces the dictionary normally used to store object attributes with fixed, well, slots.