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.
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 synchronousglob
calls in the form ofglob('**/abc
). The**
part was very expensive for us because it was checking every folder innode_modules
which is a huge folder.To fix this I would suggest changing
**
tonode_modules/mockserver-node
.