Skip to content

fix off-by-one and optimize brute force xref search #1078#1079

Merged
BobLd merged 6 commits intomasterfrom
fix-issue-1078
Jul 16, 2025
Merged

fix off-by-one and optimize brute force xref search #1078#1079
BobLd merged 6 commits intomasterfrom
fix-issue-1078

Conversation

@EliotJones
Copy link
Copy Markdown
Member

when performing a brute force xref search we were ending up off-by-one, update the search to use a ring buffer to reduce seeking and fix xref detection

I want to do some more testing around this since I don't understand how the existing code ever worked, but I'll let the CI tests run overnight. I'm going away for a week now, potentially more.

when performing a brute force xref search we were ending up
off-by-one, update the search to use a ring buffer to reduce
seeking and fix xref detection
@BobLd
Copy link
Copy Markdown
Collaborator

BobLd commented Jul 11, 2025

@EliotJones do you want me to wait for you before merging? Or are you okay merging as is?

@EliotJones
Copy link
Copy Markdown
Member Author

@BobLd I want to run integration tests first and then try and isolate some test cases because it appears every brute force search would have been broken and I find that hard to believe.

@EliotJones
Copy link
Copy Markdown
Member Author

@BobLd this has test coverage now and should be ready to merge, I'll re-run the integration tests to ensure I didn't break anything while adding tests.

@BobLd
Copy link
Copy Markdown
Collaborator

BobLd commented Jul 14, 2025

@EliotJones sounds great, let me know when good to merge

Copy link
Copy Markdown
Collaborator

@BobLd BobLd left a comment

Choose a reason for hiding this comment

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

@EliotJones thanks again for the great help here. Do you mind sealing the CircularByteBuffer class?

@EliotJones
Copy link
Copy Markdown
Member Author

@BobLd this is ready for merging now 🙏

@BobLd BobLd merged commit 9503f9c into master Jul 16, 2025
2 of 3 checks passed
@BobLd BobLd deleted the fix-issue-1078 branch July 16, 2025 06:36
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