ASA calculation performance tweaks - #1148
Open
josemduarte wants to merge 3 commits into
Open
Conversation
Replaces IndexAndDistance object arrays with primitive int[] and double[] arrays in a Neighbors holder, sorted at creation time to eliminate per-atom sort calls and reduce object allocations.
aalhossary
added a commit
to aalhossary/biojava
that referenced
this pull request
Aug 30, 2026
Covers what is merged since 7.2.6 and what is open and expected to land: the download and checksum work, the CATH and ECOD fixes, the contact and ASA performance tweaks, electron density, and the JUnit 5 migration. Five entries are for pull requests that are still open - biojava#1134, biojava#1147, biojava#1148, biojava#1150 and biojava#1151 - and should be checked against what actually merged before the release is tagged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The runtime gain should be around 1.2-1.3x. And together with #1147 it is about 1.3-1.5x
Implemented by Claude and fully tested. Output is identical to the previous implementation.
The changes are to replace objects with flat primitive arrays so the hot loops are sequential scans over contiguous memory instead of pointer chases.