Staging
v0.5.1
https://github.com/python/cpython
Revision 8e409cebad42032bb7d0f2cadd8b1e36081d98af authored by Eric W on 30 October 2020, 04:56:28 UTC, committed by GitHub on 30 October 2020, 04:56:28 UTC
The _RandomSequence class in tempfile used to check the current pid every time its rng property was used.
This commit replaces this code with `os.register_at_fork` to reduce the overhead.
1 parent 9129af6
History
Tip revision: 8e409cebad42032bb7d0f2cadd8b1e36081d98af authored by Eric W on 30 October 2020, 04:56:28 UTC
bpo-42160: tempfile: Reduce overhead of pid check. (GH-22997)
Tip revision: 8e409ce
File Mode Size
Tokens -rw-r--r-- 1.5 KB
python.gram -rw-r--r-- 33.0 KB

back to top