INADA Naoki added the comment:

> Isn't the latter case the more common one? Creating an empty dict and then 
> populate it.

This is memory usage optimization, not performance optimization.
(But I think memory efficiency makes multi process application faster because 
L3 cache size is limited resource.)
Later case shows how performance penalty is large.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30040>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to