We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e49c3d commit 6335617Copy full SHA for 6335617
src/index.ts
@@ -8,6 +8,7 @@ import { createCommitMethods } from './commits.js';
8
export * from './types.js';
9
export * from './parse-object.js';
10
export async function createGitReader(gitdir: string) {
11
+ const startInitTime = Date.now();
12
const [refIndex, looseObjectIndex, packedObjectIndex] = await Promise.all([
13
createRefIndex(gitdir),
14
createLooseObjectIndex(gitdir),
@@ -39,6 +40,8 @@ export async function createGitReader(gitdir: string) {
39
40
packed: packedObjects
41
}
42
};
- }
43
+ },
44
+
45
+ initTime: Date.now() - startInitTime
46
47
0 commit comments