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

HighlightingAssets: Encapsulate theme_set behind a getter #1760

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

Enselic
Copy link
Collaborator

@Enselic Enselic commented Jul 29, 2021

Mainly to prepare for potential lazy-loading in the future to improve startup performance. Like we did for syntax_set.

I currently don't plan on making ThemeSet lazy-loaded, because the impact of that is negligible compared to other things we can do. But in case we want to do it later, it's nice to have the code prepared like this.

src/assets.rs Show resolved Hide resolved
Mainly to prepare for potential lazy-loading in the future to
improve startup performance. Like we did for syntax_set.
@Enselic Enselic merged commit ffdf349 into sharkdp:master Jul 29, 2021
@Enselic Enselic deleted the encapsulate-theme-set branch July 29, 2021 19:30
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