Skip to content

Update gitService.ts to use spawn instead of exec#88

Merged
huizhougit merged 1 commit intohuizhougit:masterfrom
BenBeattieHood:patch-2
Aug 2, 2024
Merged

Update gitService.ts to use spawn instead of exec#88
huizhougit merged 1 commit intohuizhougit:masterfrom
BenBeattieHood:patch-2

Conversation

@BenBeattieHood
Copy link
Contributor

child_process.spawn is generally faster than child_process.exec and it does not buffer the data before sending, so no buffer limits (default 200k in exec) apply.

`child_process.spawn` is generally faster than `child_process.exec` and it does not buffer the data before sending, so no buffer limits (default 200k in exec) apply.
@BenBeattieHood
Copy link
Contributor Author

@huizhougit 🙏

@huizhougit huizhougit merged commit aecb17d into huizhougit:master Aug 2, 2024
@huizhougit
Copy link
Owner

Thanks for the PR @BenBeattieHood !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants