-
Notifications
You must be signed in to change notification settings - Fork 33
Optimize write artifacts to disk in watch mode #784
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
Merged
rbalicki2
merged 32 commits into
isographlabs:main
from
lucasmachadorj:lm/create-artifacts-hash
Nov 27, 2025
Merged
Changes from 17 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
b580de7
Artifact lookup cache
8ef67c4
Generate and write to disk artifacts lookup hash
89cafc5
Rename artifact look cache to file system state
265c0a1
Remove the persisted file system state
92f455c
Write only changed files to disk in watch mode
bc1a23e
Remove serialization trait
6d4efc2
Remove unused imports
18406a5
Rename commited_artifacts to artifacts_to_write
9b65459
Merge branch 'main' into lm/create-artifacts-hash
0d10bff
fix from merge conflict
58eea9a
Add tracing to get_artifacts_to_write
3e1a5b6
Merge branch 'main' into lm/create-artifacts-hash
58ab26b
fix merge conflict
7bfef33
Replace ChangedFactory with a vector a FileSystemOperation
cb7151b
Merge branch 'main' into lm/create-artifacts-hash
cf8a101
tracing->skip_all
a8ba635
FileSystemState unit tests
04506a2
Merge branch 'main' into lm/create-artifacts-hash
f9053f5
refactor mutable state to pure functions
9322fa4
fix loop position
29fb325
reduce redundant CreateDirectory operations
4499ae3
Use FileContent index insteaf of cloning it
b7e5b3f
remove references to &Copy
7388fce
turn diff a pure function
5451d26
rewrite tests
e578ec0
fmt
e9dc514
rename unused arg
bf2297d
Remove unecessary delete operations
ab17a25
nits: remove type annotations and unnecessary variable declarations
979e70d
improve variable names in diff
d9ed1a6
a few more variable name improvements
75a8e99
some nit improvs
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,18 @@ | ||
| mod eager_reader_artifact; | ||
| mod entrypoint_artifact; | ||
| mod file_system_state; | ||
| mod format_parameter_type; | ||
| pub mod generate_artifacts; | ||
| mod imperatively_loaded_fields; | ||
| mod import_statements; | ||
| mod iso_overload_file; | ||
| mod normalization_ast_text; | ||
| mod operation_text; | ||
| pub mod operation_text; | ||
| mod persisted_documents; | ||
| mod raw_response_type; | ||
| mod reader_ast; | ||
| mod refetch_reader_artifact; | ||
| mod ts_config; | ||
|
|
||
| pub use file_system_state::FileSystemState; | ||
| pub use generate_artifacts::get_artifact_path_and_content; |
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| use std::path::PathBuf; | ||
|
|
||
| use crate::FileContent; | ||
|
|
||
| #[derive(Debug, Clone)] | ||
| pub enum FileSystemOperation { | ||
| DeleteDirectory(PathBuf), | ||
| CreateDirectory(PathBuf), | ||
| WriteFile(PathBuf, FileContent), | ||
| DeleteFile(PathBuf), | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.