fabianp/memory_profiler — pull request #46 by s7v7nislands (2013-05-10 11:56:46+00:00)
Title: using literal syntax

nothing, just for a nice article.

http://doughellmann.com/2012/11/the-performance-impact-of-using-dict-instead-of-in-cpython-2-7-2.html

test result for literal list.

$ python2.7 -m timeit -n 1000000 -r 5 -v 'list()'
raw times: 0.179 0.184 0.189 0.205 0.191
1000000 loops, best of 5: 0.179 usec per loop
python2.7 -m timeit -n 1000000 -r 5 -v '[]'
raw times: 0.0576 0.0618 0.0599 0.0576 0.0583
1000000 loops, best of 5: 0.0576 usec per loop