Remove unnecessary timing measurement in ApiContext:read function to streamline performance logging

This commit is contained in:
Joe 2026-03-01 14:34:34 -06:00
parent a4042d3d97
commit c0f5a01e17
2 changed files with 1 additions and 5 deletions

View file

@ -216,7 +216,6 @@ function ApiContext:read(ids)
end) end)
:andThen(rejectFailedRequests) :andThen(rejectFailedRequests)
:andThen(function(response) :andThen(function(response)
local decodeClock = os.clock()
Log.trace("[TIMING] ApiContext:read() msgpack decode starting") Log.trace("[TIMING] ApiContext:read() msgpack decode starting")
return Http.Response.msgpack(response) return Http.Response.msgpack(response)
end) end)

View file

@ -564,10 +564,7 @@ pub fn git_add(repo_root: &Path, paths: &[PathBuf]) {
Ok(m) => m, Ok(m) => m,
Err(_) => continue, Err(_) => continue,
}; };
let stat = match gix::index::entry::Stat::from_fs(&gix_meta) { let stat = gix::index::entry::Stat::from_fs(&gix_meta).unwrap_or_default();
Ok(s) => s,
Err(_) => gix::index::entry::Stat::default(),
};
if let Some(existing) = index if let Some(existing) = index
.entry_mut_by_path_and_stage(bstr_path.as_ref(), gix::index::entry::Stage::Unconflicted) .entry_mut_by_path_and_stage(bstr_path.as_ref(), gix::index::entry::Stage::Unconflicted)