-
Notifications
You must be signed in to change notification settings - Fork 233
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
New API: fast colors #81
Comments
That's a great idea; we can totally optimize for that. Probably better than adding a new method would be for |
This could be further optimized, but what about something roughly like this: d92e719? This will effectively exit the render early if there are only text colors and text styles to render. |
I can try check this branch. |
Yeah, it’s an improvement but we can do better. Have some ideas, will look into this some more. |
If you really just need colors, you could of course try and see how you fare with directly using |
Hi,
I'm building a new tool that requires a lot of Render calls (right now I prerender every line for a viewbox). The cpu profile shows lipgloss.Render func is taking lots of time:
But I use only colors. Is it possible to add new methods, which allow to access only color functionality (no padding, borders, etc.)?
Thanks!
The text was updated successfully, but these errors were encountered: