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 vstinner
Recipients corona10, eric.snow, erlendaasland, pablogsal, phsilva, shihai1991, skrah, vstinner
Date 2020-11-01.00:15:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604189742.82.0.816609743711.issue40077@roundup.psfhosted.org>
In-reply-to
Content
Count static types:

grep -E 'static PyTypeObject .* =' $(find -name "*.c"|grep -v Doc/)|wc -l

Count heap types:

grep -E 'PyType_Spec .* =' $(find -name "*.c")|wc -l

Status:

* 3.6: 10 heap (6%) vs 145 static (total: 155)
* 3.7: 10 heap (6%) vs 150 static (total: 160)
* 3.8: 15 heap (9%) vs 157 static (total: 172)
* 3.9: 39 heap (21%) vs 149 static (total: 188) -- 2.6x more heap types than 3.8!
* master: 69 heap (35%) vs 131 static (total: 200) -- 1.8x more heap types than 3.9!

The percentage of heap static is growing in the right direction ;-) The total number of types is also growing at each Python realease!
History
Date User Action Args
2020-11-01 00:15:42vstinnersetrecipients: + vstinner, phsilva, skrah, eric.snow, corona10, pablogsal, shihai1991, erlendaasland
2020-11-01 00:15:42vstinnersetmessageid: <1604189742.82.0.816609743711.issue40077@roundup.psfhosted.org>
2020-11-01 00:15:42vstinnerlinkissue40077 messages
2020-11-01 00:15:42vstinnercreate