-
Notifications
You must be signed in to change notification settings - Fork 13
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
Delete code pertaining to incremental compilation #1183
base: main
Are you sure you want to change the base?
Conversation
Assuming no performance impact I think this will be a huge win, and I share the intuition that getting rid of it will unlock a range of other improvements. |
Oh I maybe worded that poorly, if there is a perf impact I expect it to be positive. |
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.
just did a skim, looks very promising!
/// Mut to permit caching. | ||
fn inputs(&mut self) -> Result<Input, Error>; | ||
/// path is to the root entry, e.g. .glyphs file, .designspace, etc | ||
fn new(root: PathBuf) -> Result<Self, Error> |
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.
I'd make this &Path
, unless we know the source needs ownership?
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.
"know" is perhaps too strong but it certainly often will
647e8eb
to
b496e43
Compare
Rename
--incremental
to--emit-ir
; delete all code pertaining to incremental operation, simplify the IR Source trait as a result.The incremental code was written prior to understanding just how dynamic the graph of tasks can be. We default it to off and it's not clear its completely reliable. If we find we want incremental one day we can start fresh; until then it's much simpler to just not do all the associated bookkeeping.
This leads to a huge diff but it's almost all just deleting bookkeeping.
My intuition is this will lead to further simplifications.
TODO: time to see if there is a performance diff.