Skip to content

Draft: Speed up SegmentInjectorModifier#746

Open
rbs-afflitto wants to merge 2 commits into
masterfrom
feature/segment-injector-modifier-speedup
Open

Draft: Speed up SegmentInjectorModifier#746
rbs-afflitto wants to merge 2 commits into
masterfrom
feature/segment-injector-modifier-speedup

Conversation

@rbs-afflitto
Copy link
Copy Markdown
Collaborator

  • I have reviewed the OFRAK contributor guide and attest that this pull request is in accordance with it.
  • I have made or updated a changelog entry for the changes in this pull request.

One sentence summary of this PR (This should go in the CHANGELOG!)
Optimize SegmentInjectorModifier for bulk segment injection

Link to Related Issue(s)
n/a

Please describe the changes in your request.
This PR optimizes SegmentInjectorModifier. Instead of running BinaryInjectorModifier separately for each segment, it collects all segment patches and applies them in a single bulk queue_patch operation. Stale descendants are now identified proactively by checking which resources have data ranges (within root) that overlap the patch ranges, rather than reactively tracking which resources were modified by each BinaryInjectorModifier call.

Closes #685.

Anyone you think should look at this, specifically?
@whyitfor

@rbs-afflitto rbs-afflitto changed the title Speed up SegmentInjectorModifier Draft: Speed up SegmentInjectorModifier May 8, 2026
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.

1 participant