Skip to content

perf: reduce runtime CPU and memory footprint#18

Merged
orhun merged 2 commits into
orhun:mainfrom
EzgiTastan:perf/reduce-runtime-footprint
May 3, 2026
Merged

perf: reduce runtime CPU and memory footprint#18
orhun merged 2 commits into
orhun:mainfrom
EzgiTastan:perf/reduce-runtime-footprint

Conversation

@EzgiTastan

Copy link
Copy Markdown
Contributor

not an optimization engineer here, but I tried to collect the low hanging fruits

Measured locally on macos (:p), release build. Here is the comparison between baseline and this PR.

Idle (sleep 90s):

  • CPU: 51% -> 6%
  • RSS: 235 MB -> 208 MB

Burst (20k lines output):

  • CPU: 47% -> 3%
  • RSS: 237 MB -> 207 MB

Binary: 98 MB -> 76 MB


What changed:

  • Switched bevy to explicit features instead of default-features = true
  • Added WinitSettings with reactive low power mode
  • Redraw throttle (16ms)
  • Skip unnecessary work in Flat2d mode
  • Reduce default scrollback (10000 -> 2000)
  • Bounded PTY channel + larger read buffer

fyi, most of the diff is Cargo.lock (deleted unused bevy deps).

@orhun orhun left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aight

@orhun orhun merged commit b38c850 into orhun:main May 3, 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.

2 participants