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
@Shimuuar Shimuuar merged commit 1cf44fb into haskell:master Sep 14, 2025
28 checks passed
@Shimuuar Shimuuar deleted the STify branch September 14, 2025 12:26
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