perf(bivariate): in-place dense linear solver for GS interpolation#256
Closed
olympichek wants to merge 1 commit into
Closed
perf(bivariate): in-place dense linear solver for GS interpolation#256olympichek wants to merge 1 commit into
olympichek wants to merge 1 commit into
Conversation
🤖 PR SummaryPerformance Optimization
Mathematical Verification
Infrastructure & Benchmarking
Statistics
Lean Declarations ✏️ **Added:** 23 declaration(s)
📋 **Additional Analysis**Pull Request Guidelines
Style and Naming Guidelines
Assessment against Framework
📄 **Per-File Summaries**
Last updated: 2026-06-20 23:42 UTC. |
2 tasks
Collaborator
|
thank you @olympichek , merged in the related PR! (just so I could update the underlying branch) |
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.
Overview
This PR substantially speeds up the Guruswami-Sudan dense linear interpolation solve while preserving all of its correctness guarantees.
The previous solver copied the entire working matrix on every row operation. Because Gaussian elimination performs a number of row operations proportional to the matrix size, that copy pushed its cost from the expected cubic
O(n³)up to quarticO(n⁴), and produced a large amount of short-lived allocation along the way. The new solver works in place, reusing its memory instead of copying it, which restores theO(n³)running time and relieves the allocation pressure on the interpolation step.This is purely a performance change: the new implementation is proven equivalent to the old one, so it introduces no new assumptions.
This PR includes:
homogeneousWitnessInPlace), now the certified backend behinddenseLinearKernelContextfor Guruswami-Sudan interpolation.homogeneousWitnessInPlace_eq), which lets the existing correctness guarantees carry over unchanged.