RELEASE_TYPE: patch
This patch changes the backing datastructures of ~hypothesis.register_random
and a few internal caches to use weakref.WeakKeyDictionary
. This reduces memory usage and may improve performance when registered ~random.Random
instances are only used for a subset of your tests (3131
).