mockserver-node
mockserver-node copied to clipboard
Glob is too hungry / very slow
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.
Thanks, unfortunately this is still an issue. We need to update these as well:
- https://github.com/mock-server/mockserver-node/blob/6a3200b09928aaf86853a8b63cf9346a2dfeda35/downloadJar.js#L28
- https://github.com/mock-server/mockserver-node/blob/6a3200b09928aaf86853a8b63cf9346a2dfeda35/downloadJar.js#L38