Message285934
I tried this patch with attached script.
```
$ venv/bin/pip install django flask sqlalchemy
$ PYTHONTRACEMALLOC=5 venv/bin/python3 tuplemem.py > tuples.txt
$ sort tuples.txt | uniq -c | sort -nr > tuplecount
```
## default
memory: (32254693, 32292635)
tuples: 64968
head -n10 tuplecount-default
5479 (None,)
3069 ('self',)
727 (<class 'object'>,)
688 ('__class__',)
321 ('NotImplementedError',)
287 ('self', 'other')
264 (None, None)
207 (False,)
193 (None, 0)
176 (None, False)
## patched
memory: (31224697, 31261892)
tuples: 51298
head -n10 tuplecount-patched
1437 (None,)
727 (<class 'object'>,)
328 ('self',)
264 (None, None)
207 (False,)
193 (None, 0)
138 ('__class__',)
114 (True,)
112 (None, False)
110 ('target', 'fn')
I'll try again with my company's private codebase in next week. |
|
Date |
User |
Action |
Args |
2017-01-21 03:37:58 | methane | set | recipients:
+ methane, vstinner |
2017-01-21 03:37:58 | methane | set | messageid: <1484969878.08.0.757368572704.issue29336@psf.upfronthosting.co.za> |
2017-01-21 03:37:58 | methane | link | issue29336 messages |
2017-01-21 03:37:57 | methane | create | |
|