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

fixes #764 Adding tcell as a dependency delays startup time #767

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

gdamore
Copy link
Owner

@gdamore gdamore commented Jan 9, 2025

We no longer bother to create the lookup table for runewidth. I had expected this to make a significant difference, but I'm finding that it does not, but it does make the startup time even for applications that only import and never create a screen, considerably worse. Dozens of milliseconds, even up to half a second.

Applications that need this (persumably some heavy Emoji or EastAsian users) can solve for themselves by importing the runewidth package (same version) and calling the CreateLUT method.

We no longer bother to create the lookup table for runewidth.
I had expected this to make a significant difference, but I'm
finding that it does not, but it does make the startup time even
for applications that only import and never create a screen,
considerably worse.  Dozens of milliseconds, even up to half a
second.

Applications that need this (persumably some heavy Emoji or
EastAsian users) can solve for themselves by importing the runewidth
package (same version) and calling the CreateLUT method.
@gdamore gdamore merged commit 522d1e6 into main Jan 9, 2025
4 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