Skip to content

Only re-set path when preference changes#17

Open
SCdF wants to merge 1 commit intoint3h:masterfrom
SCdF:master
Open

Only re-set path when preference changes#17
SCdF wants to merge 1 commit intoint3h:masterfrom
SCdF:master

Conversation

@SCdF
Copy link

@SCdF SCdF commented Feb 2, 2017

Because preferences change when you do lots of things like change font size, and because working out the path is quite costly, only do it the first time the plugin is loaded, or if the additional_path_items preference changes.

This is a massive performance improvement on my machine. Specifically for the setting fonts case, it could mean it took seconds to change font size.

Because preferences change when you do lots of things like change font size, and because working out the path is quite costly, only do it the first time the plugin is loaded, or if the additional_path_items preference changes.
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