Force the components of returned pairs
Some functions, like partition, return a pair of values. Before this change these functions would do almost no work and return immediately, due to suspending most of the work in closures. This could cause space leaks. Closes #14.
Showing
- Data/IntMap/Base.hs 56 additions, 36 deletionsData/IntMap/Base.hs
- Data/IntMap/Strict.hs 54 additions, 44 deletionsData/IntMap/Strict.hs
- Data/IntSet/Base.hs 69 additions, 41 deletionsData/IntSet/Base.hs
- Data/Map/Base.hs 53 additions, 39 deletionsData/Map/Base.hs
- Data/Map/Strict.hs 26 additions, 24 deletionsData/Map/Strict.hs
- Data/Set/Base.hs 23 additions, 13 deletionsData/Set/Base.hs
- Data/StrictPair.hs 8 additions, 5 deletionsData/StrictPair.hs
- benchmarks/Map.hs 1 addition, 0 deletionsbenchmarks/Map.hs
Loading
Please register or sign in to comment