Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce allocations from ansi style minifier #20

Merged

Conversation

CosmicHorrorDev
Copy link
Collaborator

Less allocations and less code seems like a win to me

This changes the minifier to buffer ansi codes and then determine if the style is the same as the previous style when either applying text or finishing off the input

Copy link
Owner

@Aloso Aloso left a comment

Choose a reason for hiding this comment

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

LGTM

@CosmicHorrorDev CosmicHorrorDev merged commit 780fa64 into Aloso:main May 9, 2023
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