[issue38141] Use fewer statics in Argument Clinic.

2019-09-26 Thread Tahia K
Change by Tahia K : -- nosy: +ta1hia ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue38141] Use fewer statics in Argument Clinic.

2019-09-13 Thread Larry Hastings
Larry Hastings added the comment: shared objects x threads = contention for notification of invalidated cache lines If you're not running multiple threads, there's no problem. If it's only a few shared objects, it probably wouldn't be a big deal. As they say in medicine: "the dose makes t

[issue38141] Use fewer statics in Argument Clinic.

2019-09-13 Thread Eric Snow
Eric Snow added the comment: That might work. :) There are two key problems under subinterpreters that do not share the GIL: * races on refcount operations * cache thrashing due to refcount operations (under multi-core threads) A lock would certainly mitigate the first problem. I'm not sure

[issue38141] Use fewer statics in Argument Clinic.

2019-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would adding a mutex for thread-safe initialization of _Py_Identifier and _PyArg_Parser solve the problem with subinterpreters? -- ___ Python tracker

[issue38141] Use fewer statics in Argument Clinic.

2019-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Dropping "static" will hit performance. _PyArg_Parser is used at first place because it can cache some data between calls. If drop static, you should drop also _PyArg_Parser and return to old slow arguments parsing. -- nosy: +serhiy.storchaka

[issue38141] Use fewer statics in Argument Clinic.

2019-09-12 Thread Larry Hastings
Change by Larry Hastings : -- title: Use less statics in Argument Clinic. -> Use fewer statics in Argument Clinic. ___ Python tracker ___ _