Skip to content

Better performance by caching strings more - #18

Merged
applejag merged 1 commit into
mainfrom
feature/perf-improvements
Jan 31, 2026
Merged

Better performance by caching strings more#18
applejag merged 1 commit into
mainfrom
feature/perf-improvements

Conversation

@applejag

@applejag applejag commented Jan 31, 2026

Copy link
Copy Markdown
Owner

Performance is allegedly bad on the actual Firefly Zero device.

It's hard to debug, but one thing we're doing wrong is that we're creating a lot of strings in every update. The GC can be a big culprit.

Let's cache the strings instead so we don't have to calculate the word-wrapping and string allocation on each frame.

Closes #11

@applejag applejag self-assigned this Jan 31, 2026
@github-actions github-actions Bot added go Pull requests that update Go code dependencies Pull requests that update a dependency file labels Jan 31, 2026
@applejag
applejag merged commit a978aa2 into main Jan 31, 2026
5 checks passed
@applejag
applejag deleted the feature/perf-improvements branch January 31, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better performance

1 participant