4 ms·
I can't answer you in the absolute, but FWIW, Python 3.3 contains a number of changes that are deep-seated enough to improve performance in a wide variety of ap
by sho_hn 14y ago
I can't answer you in the absolute, but FWIW, Python 3.3 contains a number of changes that are deep-seated enough to improve performance in a wide variety of applications.
The biggest of these changes is likely the new adaptive system for the internal representation of strings which tries to pick a representation most suited to each respective string instead of using a "one size fits all" representation, to minimize the memory footprint and improve cache efficiency. Additional work that happened along side this should also greatly speed up encoding into UTF-8 and -16 and some string operations.
Another biggie is the new dict implementation, which should also significantly reduce memory footprint and improve cache efficiency (and keep in mind that object attribute namespaces are dicts, so that also affects all objects).