[Python-ideas] Preallocated tuples and dicts for function calls
mrbm74 at gmail.com
Sat Mar 9 03:21:33 EST 2019
Thread safety is not a problem here because of the GIL.
Am Sa., 9. März 2019 um 02:03 Uhr schrieb Greg Ewing <
greg.ewing at canterbury.ac.nz>:
> Martin Bammer wrote:
> > what about the idea that the interpreter preallocates and preinitializes
> > the tuples and dicts for function calls where possible when loading a
> This would not be thread-safe. Locking would be needed around uses
> of the preallocated objects, and that might take away some or all
> of the gain. It would also introduce unexpected interactions
> between threads.
> Python-ideas mailing list
> Python-ideas at python.org
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas