mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Remove unnecessary timing measurement in ApiContext:read function to streamline performance logging
This commit is contained in:
parent
a4042d3d97
commit
c0f5a01e17
2 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue