Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand elem/notElem to allow fusion #559

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

1Jajen1
Copy link
Contributor

@1Jajen1 1Jajen1 commented May 16, 2024

GHC doesn't seem to inline or fuse the infix version of elem/notElem. Fully expanding their uses does allow it.

csv benchmarks get faster and satisfy (\x -> x == '\'' || x == '\"') = oneOf ['\'', '\"'] now holds with regards to performance. Note that oneOf "'\"" will still be slower, which is why I left the note unchanged.

@mrkkrp
Copy link
Owner

mrkkrp commented May 19, 2024

Thanks! Strangely, I see this

This branch cannot be rebased due to too many changes

and the merge button is grey. As far as I can see this is based directly on current master, so it is not clear how there could be "too many changes".

@mrkkrp mrkkrp merged commit 6d07432 into mrkkrp:master May 20, 2024
4 checks passed
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.

2 participants