Line # Mem usage Increment Line Contents
================================================
15 11.8 MiB 0.0 MiB @profile()
16 def test():
17 11.8 MiB 0.0 MiB kol = 100000
18 11.9 MiB 0.0 MiB cache = dict()
19 11.9 MiB 0.0 MiB _count = count()
20 224.4 MiB 212.6 MiB for x in xrange(kol):
21 224.4 MiB 0.0 MiB cache[get_random_hash(length=1000)] = next(_count)
22 231.4 MiB 6.9 MiB xcache = {value: key for key, value in cache.iteritems()}
Line # Mem usage Increment Line Contents
================================================
15 11.8 MiB 0.0 MiB @profile()
16 def test():
17 11.9 MiB 0.0 MiB kol = 100000
18 11.9 MiB 0.0 MiB cache = dict()
19 234.0 MiB 222.1 MiB for x in xrange(kol):
20 234.0 MiB 0.0 MiB cache[get_random_hash(length=1000)] = count().next
21 240.7 MiB 6.8 MiB xcache = {value: key for key, value in cache.iteritems()}
for member in members:
print(member)