Cloning is slower than with "git"
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.8k
- Forks
- 704
- PR merge metrics
- No merged PRs in 30d
Description
System information
- node version:
v10.16.0 - npm or yarn version:
pnpm v3.6.5 - OS/version/architecture:
Ubuntu 18.04.2 LTS, Linux destiny 5.0.0-23-generic #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux - Applicable nodegit version:
0.25.0
Hello!
Thank you for this great library!
However, I've tried to clone a big repository using it with node and via git clone directly (default settings). My node script took 30s, while the git clone directly took only 18s.
Could you elaborate on this behavior, please? Is there a way to speed up this process somehow?
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report provides no repository, source file, or test; start by reproducing the comparison between the NodeGit clone and direct git clone using the reported Node, pnpm, Ubuntu, and NodeGit versions. Measure the same large repository and inspect the clone entry point and relevant libgit2 behavior. Done means identifying a reproducible cause or confirming expected behavior and documenting the result or a supported way to improve it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, javascript, node.js
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100