Skip to content

Conversation

Shimuuar
Copy link
Contributor

@Shimuuar Shimuuar commented Sep 9, 2025

Idea is to save work for GHC. Instead of having >>= as type class method for some polymorphic m we work in ST which GHC knows how to compile and optimize very well.

No changes to exposed API

Reduces allocation during compilation of Data.Vector.Generic.Mutable by ~20%. No measurable changes in other modules

Idea is to save work for GHC. Instead of having >>= as type class method for
some polymorphic `m` we work in ST which GHC knows how to compile and optimize
very well.

No changes to exposed API

Reduces allocation during compilation of Data.Vector.Generic.Mutable
by ~20%. No measurable changes in other modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant