#!/usr/local/bin/python2 for i in xrange(500000): l = [] l.extend({'a': 1, 'b': 2, 'c': 3}.iteritems()) print l