-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git.readBlob is too slow. #1841
Comments
|
Seems to be slower than child_process + git. |
I don't think that we can do anything to make it faster. This is the limitation of NodeJS and FS. NodeGit uses libgit library that is written in C, that's why it's probably faster. But if you want to contribute and increase the performance of the library you're welcome to do so. |
ok, thanks |
Hello, I found that the cache parameter can improve the speed
Now, I implemented an exists function to determine whether files and directories exist under a branch.
|
ok, i will retry |
Maybe it's a little fast, but it is faster to use the cache parameter
|
Nice, it probably means your use case was not dependent to the fix. |
💬 Git.readBlob is too slow.
I have a program that requires a lot of cross-branch reading and writing files.
I haI ran a test using nodegit and isomorphic-git. FileList: 613
result:
Although node-git is very fast here, it is native module.
So, I want to know how to speed up.
Thinks! This is a very awesome job!
The text was updated successfully, but these errors were encountered: