-
Notifications
You must be signed in to change notification settings - Fork 61
Async getStatus? #16
Comments
Are you calling it with a path or with no arguments? If you are calling it without a path then it is probably best to run it in a separate child process since it can take some time for large repositories. Adding an async version would work too but that isn't supported yet. |
I'm calling that method with no arguments. But still, I don't understand On Thu, Jan 9, 2014 at 1:47 PM, Kevin Sawicki [email protected]:
|
Hmm, yeah, not sure why it would be slower than Is the repo you are trying it out on public? |
mm no sorry, it's a private intranet web app, but i can tell you it has at On Thu, Jan 9, 2014 at 1:59 PM, Kevin Sawicki [email protected]:
|
Could take a look at this? Or should I report the issue in the libgit repo? |
I'll take a look, but it make take me some time to find a repo that reproduces the behavior you are seeing. |
I think you just need to be sure nothing weird is going on inside that function. |
I've just implemented my own getStatus parsing |
@demian85 do you know if this is still an issue? |
getStatus is really slow for big repositories and freezes my app UI (node-webkit) during the execution of that method.
I think the solution is an async version to avoid freezing the main UI/DOM thread when performing computations.
Maybe I could use workers, but why is that method taking so much time? 2+ seconds...
The text was updated successfully, but these errors were encountered: