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

Delete code pertaining to incremental compilation #1183

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

rsheeter
Copy link
Contributor

@rsheeter rsheeter commented Dec 9, 2024

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.

@cmyr
Copy link
Member

cmyr commented Dec 9, 2024

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.

@rsheeter
Copy link
Contributor Author

rsheeter commented Dec 9, 2024

Oh I maybe worded that poorly, if there is a perf impact I expect it to be positive.

Copy link
Member

@cmyr cmyr left a 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!

fontc/src/change_detector.rs Show resolved Hide resolved
fontc/src/lib.rs Show resolved Hide resolved
fontc/src/lib.rs Outdated Show resolved Hide resolved
fontir/src/error.rs Outdated Show resolved Hide resolved
fontir/src/serde.rs Outdated Show resolved Hide resolved
/// 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>
Copy link
Member

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?

Copy link
Contributor Author

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

@rsheeter rsheeter force-pushed the nocs branch 5 times, most recently from 647e8eb to b496e43 Compare December 12, 2024 21:34
@rsheeter rsheeter changed the title [WIP] Delete code pertaining to incremental compilation Delete code pertaining to incremental compilation Dec 12, 2024
@rsheeter rsheeter marked this pull request as ready for review December 12, 2024 21:56
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