Skip to content

Conversation

RedLacc
Copy link
Contributor

@RedLacc RedLacc commented Feb 25, 2025

Compared to for i, e := v.NextSet(0); e; i, e = v.NextSet(i + 1) {...} , for range s.EachSet() {...} provides clearer semantics and better iteration performance.

@lemire
Copy link
Member

lemire commented Feb 25, 2025

This is great, but I think it requires Go 1.23 or better. Could you put this functionality is new files and tag them like so:

// +build go1.23

We also need to extend our CI to cover Go 1.23 (at least).

@lemire
Copy link
Member

lemire commented Feb 25, 2025

I merged a variation on your PR, but you are given credit in the commit.

@lemire lemire closed this Feb 25, 2025
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