bpo-33228: Use Random.choices in tempfile by wm75 · Pull Request #6383 · python/cpython (original) (raw)

Well, _RandomNameSequence would get a bit more than 2x faster, but, of course, in the context of tempfile almost all public functions will be IO limited anyway, and the performance gain in this one class will be completely irrelevant.
No, I don't have a use case that needs this optimization. Rather I was coming across this, while working on #6291, when I was checking where in the stdlib random.Random gets used.
If you think this is not worth the effort, feel free to just close it, I won't mind 😃