child_process.spawn execution is significantly slower than running command directly from shell #7652
Labels
child_process
Issues and PRs related to the child_process subsystem.
performance
Issues and PRs related to the performance of Node.js.
This issue came up in Glavin001/atom-beautify#893.
I have made a minimal test case for the issue: phpcbf_spawn_test.zip, but it requires you to have
phpcbf
from PHP-Code-Sniffer installed on your system.The problem is, I want to execute
phpcbf
command with some parameters.When doing it directly from shell it runs in under 1 second:
When doing it in node via
child_process.spawn
it takes about 1 minute:Note that the file
test.php
is minimal, it shouldn't take much time to process it.The text was updated successfully, but these errors were encountered: