Repository navigation
perf: reduce memory allocations in ProjectFile.findInsertSpot - #4322
Conversation
|
@forki are you able to review this PR? |
|
/repo-assist review this PR and respond with a comment |
|
✗ Repo Assist encountered failed, see workflow run. Warning Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs for details.
|
|
/repo-assist review this PR and respond with a comment |
|
✓ Repo Assist completed successfully, see workflow run.
|
|
🤖 This is an automated response from Repo Assist. I reviewed this PR's diff (
One minor suggestion for the author (non-blocking): the two-line whitespace-only change near No functional concerns from my read of the diff. This looks ready for a maintainer's review/merge decision.
Add this agentic workflow to your repoTo install this agentic workflow, run |
Context
Perf analysis shows the function

findInsertSpotshows allocates several gig of memory when runningpaket installon this repo.The changes in this PR remove unnecessary calls to
XmlNode.ToString()to reduce memory allocations toSystem.StringandStringBuilder.The results below show that total allocations is reduced by 8 GB.
Before GC Stats
After GC Stats