Skip to content

Diff manager optimization#647

Merged
deff7 merged 1 commit intomainfrom
diffmanager-optimization
Mar 25, 2026
Merged

Diff manager optimization#647
deff7 merged 1 commit intomainfrom
diffmanager-optimization

Conversation

@deff7
Copy link
Copy Markdown
Member

@deff7 deff7 commented Mar 24, 2026

Replace *Change with a minimal diffChange struct (Id, PreviousIds only) in ChangeDiffer to avoid retaining full Change objects in memory. Replace hasChanges callback with a known map to eliminate closure retaining the tree. Remove unused readableTree field from DiffManager.


  • I understand that contributing to this repository will require me to agree with the CLA

Description

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 README.md
  • 📓 tech-docs
  • 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

Replace *Change with a minimal diffChange struct (Id, PreviousIds only)
in ChangeDiffer to avoid retaining full Change objects in memory.
Replace hasChanges callback with a known map to eliminate closure
retaining the tree. Remove unused readableTree field from DiffManager.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

New Coverage 56.6% of statements
Patch Coverage 60.6% of changed statements (20/33)

Coverage provided by https://github.com/seriousben/go-patch-cover-action

@deff7 deff7 merged commit 6dcadac into main Mar 25, 2026
4 checks passed
@deff7 deff7 deleted the diffmanager-optimization branch March 25, 2026 14:15
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants