mock-server / mockserver-node

Node.js module and grunt plugin to start and stop MockServer and MockServer Proxy
Apache License 2.0
44 stars 15 forks source link

Glob is too hungry / very slow #43

Open OliverJAsh opened 3 years ago

OliverJAsh commented 3 years ago

When I run my Node process which uses mockserver-node, it is very slow to start. After some debugging I discovered this is because there are a number of synchronous glob calls in the form of glob('**/abc). The ** part was very expensive for us because it was checking every folder in node_modules which is a huge folder.

To fix this I would suggest changing ** to node_modules/mockserver-node.

OliverJAsh commented 2 years ago

Thanks, unfortunately this is still an issue. We need to update these as well: