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 pitrou
Recipients gvanrossum, methane, pitrou, scoder, serhiy.storchaka
Date 2018-01-12.11:28:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515756509.66.0.467229070634.issue32346@psf.upfronthosting.co.za>
In-reply-to
Content
Serhiy:

> The relative speed up looks nice. But it is just few microseconds per class. You have to create many thousands of classes to gain a significant fraction of second.

This work started with your message in https://mail.python.org/pipermail/python-dev/2017-December/151277.html pointing out that we shouldn't add tp_ slots because it makes type creation and Python initialization slower (*), so I'm a bit surprised that you're now claiming speeding up type creation (by up to 3x!) is not important...

(*) To quote:

'''
2. Increased class initialization time. For every class for every slot 
we need to look up corresponding methods in dictionaries of the class 
itself and all its parents (caching doesn't work fine at this stage). 
Significant part of class initialization time is spent on initializing 
slots. This will increase the startup time and the time of creating 
local classes. The relative overhead is more significant in Cython.
'''
History
Date User Action Args
2018-01-12 11:28:29pitrousetrecipients: + pitrou, gvanrossum, scoder, methane, serhiy.storchaka
2018-01-12 11:28:29pitrousetmessageid: <1515756509.66.0.467229070634.issue32346@psf.upfronthosting.co.za>
2018-01-12 11:28:29pitroulinkissue32346 messages
2018-01-12 11:28:29pitroucreate