This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients methane, vstinner
Date 2017-01-21.03:37:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484969878.08.0.757368572704.issue29336@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-01-21 03:37:58methanesetrecipients: + methane, vstinner
2017-01-21 03:37:58methanesetmessageid: <1484969878.08.0.757368572704.issue29336@psf.upfronthosting.co.za>
2017-01-21 03:37:58methanelinkissue29336 messages
2017-01-21 03:37:57methanecreate