Skip to content

Use BlockPosSet over Set<BlockPos>#2172

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

Use BlockPosSet over Set<BlockPos>#2172
InspectorBoat wants to merge 10 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
@InspectorBoat
Copy link
Copy Markdown
Contributor Author

Sorry, I've been busy with life stuff lol. The hashset itself should be ready, but I want to add benchmark tests & do fuzzing first in a separate repository.

@kevinthegreat1
Copy link
Copy Markdown
Collaborator

kevinthegreat1 commented Apr 3, 2026

This is a skyblock mod you don't need fuzz testing lol. Just let me know if you need any help.

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

Labels

wip This PR is a work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants