Open LaurentRDC opened 5 months ago
Hello,
This PR adds a new module, Data.Bimap.Strict, which uses strict Maps under the hood. Using a strict version of 'Bimap' has resolved space leaks in commercial applications.
Data.Bimap.Strict
Map
Note that while the original 'Bimap' implementation uses strictness annotations, the internal Maps are only evaluated to weak-head normal form, which may not be strict enough.
I have also taken the liberty of incrementing the version to 0.6
You might want to take a look at #20 before this PR
Hello,
This PR adds a new module,
Data.Bimap.Strict
, which uses strictMap
s under the hood. Using a strict version of 'Bimap' has resolved space leaks in commercial applications.Note that while the original 'Bimap' implementation uses strictness annotations, the internal
Map
s are only evaluated to weak-head normal form, which may not be strict enough.I have also taken the liberty of incrementing the version to 0.6