Skip to content

fix: skip rendering large diffs to prevent performance issues#27

Merged
halbekanne merged 1 commit into
mainfrom
fix-issue-19-large-pr-performance
Apr 14, 2026
Merged

fix: skip rendering large diffs to prevent performance issues#27
halbekanne merged 1 commit into
mainfrom
fix-issue-19-large-pr-performance

Conversation

@halbekanne

Copy link
Copy Markdown
Owner

Summary

Fixes #19 — large PRs with many files or huge individual diffs (e.g. package-lock.json) caused Orbit to become unresponsive.

  • 50+ files: diff section shows an info message instead of rendering, explaining the limit
  • Individual files with >1500 changed lines: filtered out of the rendered diff, listed by name with an explanation in German
  • Passes filtered DiffFile[] directly to Diff2HtmlUI instead of reconstructing raw diff strings

Test plan

  • Build passes (ng build)
  • All 351 tests pass (ng test --no-watch)
  • New test: verifies too-many-files message appears for 50+ file diffs
  • New test: verifies large file names are shown as skipped
  • Manual: open a PR with a large package-lock.json change — file should be listed as skipped
  • Manual: open a PR with 50+ changed files — diff section shows info message

🤖 Generated with Claude Code

- Skip individual files with >1500 changed lines (e.g. package-lock.json)
  and show their names with an explanation
- Show info message instead of diff when PR has 50+ changed files
- Pass filtered DiffFile[] to Diff2HtmlUI instead of raw string

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@halbekanne halbekanne merged commit abab7c0 into main Apr 14, 2026
1 check passed
@halbekanne halbekanne deleted the fix-issue-19-large-pr-performance branch April 14, 2026 14:10
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.

Große PRs führen zu Performance-Problemen

1 participant