Skip to content

Conversation

meooow25
Copy link
Contributor

Closes #826

@meooow25 meooow25 force-pushed the intmap-comparesize branch 2 times, most recently from 4fb783a to 8376403 Compare April 26, 2025 08:54
This function short-circuits, which can be more efficient than
calculating the size.
Other structures for which `length` takes O(n) provide similar
`compareLength`s: list, Text, lazy Text, lazy ByteString.
@meooow25 meooow25 force-pushed the intmap-comparesize branch from 8376403 to e52fdb2 Compare April 26, 2025 08:56
@meooow25 meooow25 merged commit 97156ef into haskell:master Apr 26, 2025
13 checks passed
@meooow25 meooow25 deleted the intmap-comparesize branch April 26, 2025 09:12
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.

Int{Map,Set}.compareSize and associated rules
1 participant