commit | 8e409cebad42032bb7d0f2cadd8b1e36081d98af | [log] [tgz] |
---|---|---|
author | Eric W <robo-eric@gmx.de> | Fri Oct 30 05:56:28 2020 +0100 |
committer | GitHub <noreply@github.com> | Fri Oct 30 13:56:28 2020 +0900 |
tree | 4347dffac5a388a69782692bfa63075bf8607cdf | |
parent | 9129af6050b747f288baa9d4e7d43031647ed222 [diff] |
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.