MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / index

Method index

atomic-repository/src/change_source/performance.rs:40–44  ·  view source on GitHub ↗
(path: &RepoPath)

Source from the content-addressed store, hash-verified

38
39impl SyntheticFilesystem {
40 fn index(path: &RepoPath) -> usize {
41 let bytes = path.as_bytes();
42 let digits = &bytes[5..bytes.len() - 4];
43 std::str::from_utf8(digits).unwrap().parse().unwrap()
44 }
45
46 fn observation(&self, path: &RepoPath) -> ObservedFile {
47 let index = Self::index(path);

Calls 4

as_bytesMethod · 0.45
lenMethod · 0.45
unwrapMethod · 0.45
parseMethod · 0.45