Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bunch of side perf improvements #217

Draft
wants to merge 63 commits into
base: ver/1.21.4
Choose a base branch
from
Draft

Conversation

Taiyou06
Copy link
Collaborator

@Taiyou06 Taiyou06 commented Feb 7, 2025

This PR should add in-dev stuff that was left over in our private test repository. (Tramontane)

@Dreeam-qwq Dreeam-qwq added the type: optimization Pull request for optimization label Feb 7, 2025
@Taiyou06 Taiyou06 force-pushed the tramontane-stuff branch 2 times, most recently from ed9140d to d473e2d Compare February 8, 2025 03:40
@Taiyou06
Copy link
Collaborator Author

Taiyou06 commented Feb 8, 2025

34c1344

TODO: Seperate the tickets with "not removal delay" outside the array and "with remove delays". So we avoid and predicate tests.
Suggestion by: @MachineBreaker

@Taiyou06
Copy link
Collaborator Author

Taiyou06 commented Feb 8, 2025

f40f313
This commit simplifies the SortedArraySet impl by making it O(N) from O(N+1) from paper's implementation, key differences are:

  • Avoids writes via writePos check.
  • And all of the logic is in a single for loop.

@Dreeam-qwq
Copy link
Member

Great work, will cleanup later, also not need to merge new commits from main branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: optimization Pull request for optimization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants