Message291481
> 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. |
|
Date |
User |
Action |
Args |
2017-04-11 10:45:48 | methane | set | recipients:
+ methane, xiang.zhang |
2017-04-11 10:45:48 | methane | set | messageid: <1491907548.26.0.262811882199.issue30040@psf.upfronthosting.co.za> |
2017-04-11 10:45:48 | methane | link | issue30040 messages |
2017-04-11 10:45:48 | methane | create | |
|