Small optimization in `find_annotated_strategy`
Viicos opened this issue · comments
Victorien commented
Currently working on the Pydantic hypothesis plugin, figured the following could be optimized a bit:
hypothesis/hypothesis-python/src/hypothesis/strategies/_internal/types.py
Lines 346 to 350 in c579480
By building the filter map once before the for
loop. If you agree, PR ready to be pushed.
Zac Hatfield-Dodds commented
Yes please!