bpo-42160: tempfile: Reduce overhead of pid check. (GH-22997)
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.
E
Eric W committed
8e409cebad42032bb7d0f2cadd8b1e36081d98af
Parent: 9129af6
Committed by GitHub <noreply@github.com>
on 10/30/2020, 4:56:28 AM