-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call load_customisations! automatically, lazily
I've been wary about doing lazy application of load_customisations!, but with the @noinline addition the calls are really cheap: only 1.5ns according to Chairmarks on my machine. Thus, the cost of calling it after initialisation will be negligeable for any non-trivial function. Having rolled this around further, other than printing I think only withfaces calls actually require loading of user styles to be valid. With these two realisations, calling load_customisations! lazily as appropriate seems like a bit of a no-brainer. We'll probably want to add this to public API eventually for non-text/html output implementations, but we can wait to see how this is bourne out first.
- Loading branch information
Showing
4 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters