lynn / pysearch

Brute-force search for short Python expressions (for code golf)
MIT License
46 stars 7 forks source link

Use hashbrown HashMap #15

Closed JayXon closed 1 year ago

JayXon commented 1 year ago

While the map itself is the same as the one in std, it by default uses ahash, which is much faster and significantly speeds up single threaded pysearch, it also has built-in rayon support, which reduces peak memory usage by ~20% when rayon is enabled, but slightly slower.