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

Optimize for single-line single-span single-word text #311

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

UkoeHB
Copy link
Contributor

@UkoeHB UkoeHB commented Sep 2, 2024

Use SmallVec with the assumption that a large proportion of text is single-line, and possible single-span and single-word.

I tried using SmallVec for glyphs but noticed a perf regression in one unit test.

@UkoeHB UkoeHB mentioned this pull request Sep 2, 2024
13 tasks
@grovesNL
Copy link
Contributor

grovesNL commented Sep 2, 2024

It would be nice if this could be configurable somehow. This would be a regression my application - almost all of my buffers have more than one word and span more than one line.

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