Skip to content

Use BlockPosSet over Set<BlockPos>#2172

Draft
InspectorBoat wants to merge 9 commits intoSkyblockerMod:mainfrom
InspectorBoat:blockposset
Draft

Use BlockPosSet over Set<BlockPos>#2172
InspectorBoat wants to merge 9 commits intoSkyblockerMod:mainfrom
InspectorBoat:blockposset

Conversation

@InspectorBoat
Copy link
Copy Markdown
Contributor

  • Rather more performant than HashSet
  • Somewhat more performant than LongOpenHashSet
  • Removes the problem of having to perform defensive clones because of MutableBlockPos

@LifeIsAParadox LifeIsAParadox added the wip This PR is a work in progress label Feb 23, 2026
Copy link
Copy Markdown
Collaborator

@kevinthegreat1 kevinthegreat1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this pr meant to be ready? It hasn't been updated in a while.

do {
// TODO: Switch to this when Vector API stabilizes
/*
LongVector n = LongVector.fromArray(LongVector.SPECIES_512, this.entries, i);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be species preferred?

@LifeIsAParadox LifeIsAParadox added the merge conflicts This PR has merge conflicts that need solving. label Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge conflicts This PR has merge conflicts that need solving. wip This PR is a work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants