Repository navigation
Conversation
Preserve cell traversal order, avoid Python-list result conversion, and add a guarded triclinic minimum-image fast path. Add regression coverage around the fast-path cutoff. AI disclosure: original optimization generated with Claude; validation, regression tests and submission prepared with OpenAI Codex at the contributor request.
Documentation build overview
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5547 +/- ##
===========================================
- Coverage 93.93% 93.92% -0.01%
===========================================
Files 184 184
Lines 22662 22662
Branches 3223 3223
===========================================
- Hits 21287 21286 -1
Misses 915 915
- Partials 460 461 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
orbeckst
requested changes
Nov 13, 2026
orbeckst
left a comment
Member
There was a problem hiding this comment.
- Have you read the AI policy?
- Please open an issue first, documenting the problem that you're trying to solve.
Member
|
I am not reviewing large PRs with math/algorithmic changes without a proper issue and explanation of the approach. |
Member
|
I'm closing this PR as stale, due to lack of author input. Please re-open as needed. |
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.
FastNS spends substantial time traversing linked lists, evaluating periodic images, and converting C++ result vectors through Python lists. This change stores cell contents contiguously in the existing traversal order, copies results directly into NumPy arrays, and uses a guarded triclinic distance fast path with the existing 27-image calculation as fallback.
AI disclosure and contribution policy
LLMs or other AI-powered tools (beyond simple IDE use cases) were used in this contribution: yes.
Submitted from Greg Miller's account at his explicit request. The original optimization was generated with Claude. OpenAI Codex inspected the patch, reran validation, added regression tests, and prepared this submission and its description. This is not presented as solely human-written code.
We recognize that the current AI policy does not permit fully AI-generated contributions. This PR is submitted transparently for your decision on whether to consider an exception; no exception has been granted. We understand if you close it under the current policy.
Changes
Evidence and limits
Recorded local measurements against upstream
bd5aa9101f1ff7f7d9df535c963ec320c9614432, on one Apple M1 Max under concurrent load:These are exploratory best-of-5 measurements (best-of-3 for self-search and RDF), not controlled cross-platform benchmarks. The RDF workload uses the parameters from
SimpleRdfBench; the local harness includes object construction. No Linux/x86 or production-workload measurements have been made. This submission pass checked the saved timing files but did not repeat the timing runs.The original experiment saved outputs for 88 search/self-search cases across six box shapes, multiple cutoffs and sizes, and periodic/nonperiodic inputs: 7,142,368 pairs. A fresh comparison against that saved baseline passed, including byte-for-byte comparison of pair and distance arrays. That establishes equivalence for these cases on arm64, not a universal guarantee.
Fresh validation for this submission:
git diff --check: passed.The contiguous representation currently coexists with the original linked-list allocation, so this trades additional memory and setup work for faster traversal. Peak memory and small-workload regressions have not been measured.
Standalone timing reproduction (run on original and patched builds)
PR checklist