Skip to content

Optimize Entry.plainText concatenation#86

Merged
onevcat merged 1 commit intomasterfrom
perf-optimize-plaintext
Dec 19, 2025
Merged

Optimize Entry.plainText concatenation#86
onevcat merged 1 commit intomasterfrom
perf-optimize-plaintext

Conversation

@onevcat
Copy link
Owner

@onevcat onevcat commented Dec 19, 2025

Summary

  • Replace O(n^2) concatenation in Entry.plainText with preallocated linear appends

Motivation

  • The no-color path uses Entry.plainText; repeated string concatenation can be slower than the ANSI path that already preallocates.

@onevcat onevcat force-pushed the perf-optimize-plaintext branch from e83dc07 to 9f1c7a9 Compare December 19, 2025 06:42
@onevcat onevcat merged commit 40e38c8 into master Dec 19, 2025
2 checks passed
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.

1 participant