Message275581
| Author |
vstinner |
| Recipients |
dilettant, ethan.furman, methane, python-dev, rhettinger, serhiy.storchaka, vstinner |
| Date |
2016年09月10日.06:48:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1473490095.71.0.301513730006.issue27350@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It seems like the memory usage is between 20% and 25% smaller. Great job!
Memory usage, Python 3.5 => Python 3.6 on Linux x86_64:
./python -c 'import sys; print(sys.getsizeof({str(i):i for i in range(10)}))'
* 10 items: 480 B => 384 B (-20%)
* 100 items: 6240 B => 4720 B (-24%)
* 1000 items: 49248 B => 36984 B (-25%)
Note: the size is the the size of the container itself, not of keys nor values. |
|