Visitar URL original
HashSet.fromList: Use unsafeInsert by sjakobi · Pull Request #515 · haskell-unordered-containers/unordered-containers · GitHub
Skip to content

HashSet.fromList: Use unsafeInsert - #515

Merged
sjakobi merged 1 commit into
masterfrom
sjakobi/issue514
Oct 20, 2025
Merged

sjakobi merged 1 commit into
masterfrom
sjakobi/issue514

Conversation

@sjakobi

@sjakobi sjakobi commented Oct 5, 2025

Copy link
Copy Markdown
Member

Fixes #514.

@sjakobi

sjakobi commented Oct 18, 2025

Copy link
Copy Markdown
Member Author

For large lists this really makes a difference. For 1000 elements I see a speed up of about 30%. For 100.000 elements 40–45%.

@sjakobi
sjakobi marked this pull request as ready for review October 18, 2025 17:03
@sjakobi
sjakobi merged commit 0d0697e into master Oct 20, 2025
@sjakobi
sjakobi deleted the sjakobi/issue514 branch October 20, 2025 06:25
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.

HashSet.fromList doesn't use mutation

1 participant