On Tue, 12 Jan 2021 18:48:39 +0000 Pablo Galindo Salgado <pablog...@gmail.com> wrote: > One worry that I have in general with this move > is the usage of _PyType_GetModuleByDef to get the type object > from the module definition. This normally involves getting a TLS in every > instance creation, > which can impact notably performance for some perf-sensitive types or types > that are created a lot.
If it's inlined C TLS it should be fast (*). If it's Python's emulated TLS then probably not :-) (*) see https://godbolt.org/z/d7eKx7 Regards Antoine. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/CKABGMLSJLKDGKUOMXA6MKO36MEWZIIS/ Code of Conduct: http://python.org/psf/codeofconduct/