-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use slightly slower code to deal with the fact that many apps put sem…
…i-colons on clockinfo/settings that are supposed to be evaluated
- Loading branch information
1 parent
1ec8fba
commit 9185793
Showing
1 changed file
with
2 additions
and
2 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
9185793
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it would be worth our while, I could go through clockinfos and settings to remove trailing semicolons? So we can do it the faster way here.
In that case, I guess we should add to the sanitychecker checks and instructions re not adding semicolons to those types of files?
9185793
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're happy to do that, that would be really cool. I actually did already add it to sanitycheck, I was just wondering whether to commit it or not - but I have now done so :) It's not like it really adds that much delay to loading, it's just a slight annoyance.
The big potential issue we have (the first part of this commit where the comment is) is when clockinfo/etc use libraries that then get added to the start of the file with
Modules.addCached
and have to beeval
ed. Having to fall back to eval and a file load in those cases (likesched.clkinfo.js
) really does add a decent amount of delay.The sane option there might be to modify EspruinoTools to allow it to just return the extra modules needed in a list, which could then be written direct to storage, but I guess it might be possible to parse out the
Modules.addCached
line from within bootupdate and put it at the start of theclkinfocache
file