Avoid rebuilding byte-identical source graphs

This commit is contained in:
root
2026-07-16 23:27:51 +00:00
parent 8dd307d316
commit e9644c717f
2 changed files with 16 additions and 2 deletions
+4 -1
View File
@@ -497,7 +497,10 @@ SharedUnitFilesystemState inspect_shared_unit_filesystem(Request* context, Share
state.current_input_signature != "" &&
state.metadata_input_signature == state.current_input_signature
);
state.required_time = std::max({state.source_time, state.setup_template_time, state.compiler_abi_time});
// Source and setup-template freshness is content-addressed by the input
// signature. Keep the executable timestamp as the independent codegen
// boundary, but do not rebuild byte-identical sources after a touch/restore.
state.required_time = state.compiler_abi_time;
// Native .so execution has been removed; compile freshness is the wasm
// side-module freshness.
state.compiled_time = file_mtime(su->wasm_name);