| ... | @@ -1332,6 +1332,8 @@ pub const Repository = struct { | ... | @@ -1332,6 +1332,8 @@ pub const Repository = struct { |
| 1332 | const t = tracer.trace(@src(), "", .{}); | 1332 | const t = tracer.trace(@src(), "", .{}); |
| 1333 | defer t.end(); | 1333 | defer t.end(); |
| 1334 | | 1334 | |
| | 1335 | // const start = std.time.milliTimestamp(); |
| | 1336 | |
| 1335 | const base_idx = try r.getCommitA(arena, base_oid.id); | 1337 | const base_idx = try r.getCommitA(arena, base_oid.id); |
| 1336 | const base = base_idx.reify(r); | 1338 | const base = base_idx.reify(r); |
| 1337 | const base_tree = try traverseTo(r, arena, base.tree, dir_path); | 1339 | const base_tree = try traverseTo(r, arena, base.tree, dir_path); |
| ... | @@ -1385,6 +1387,10 @@ pub const Repository = struct { | ... | @@ -1385,6 +1387,10 @@ pub const Repository = struct { |
| 1385 | v.* = base_oid; | 1387 | v.* = base_oid; |
| 1386 | } | 1388 | } |
| 1387 | } | 1389 | } |
| | 1390 | |
| | 1391 | // const end = std.time.milliTimestamp(); |
| | 1392 | // std.log.debug("found {d} in {d}ms", .{ total, end - start }); |
| | 1393 | |
| 1388 | return try arena.dupe(CommitId, result.values()); | 1394 | return try arena.dupe(CommitId, result.values()); |
| 1389 | } | 1395 | } |
| 1390 | }; | 1396 | }; |