perf(desktop): reduce terminal memory footprint#1471
Conversation
📝 WalkthroughWalkthroughThe pull request centralizes previously hard-coded terminal scrollback values into a new exported constant Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reduce default scrollback from 10,000 to 5,000 lines across renderer, daemon, and headless emulator (~1.6MB saved per terminal session). Extract to shared constant for future configurability. Also clear emulator buffer before dispose for immediate memory release.
ae9b910 to
ee6cbda
Compare
Summary
DEFAULT_TERMINAL_SCROLLBACKfor future configurabilityTest plan
Summary by CodeRabbit