mrm icon indicating copy to clipboard operation
mrm copied to clipboard

function resolveDirectories takes too long

Open 0-Captain opened this issue 4 years ago • 2 comments

https://github.com/sapegin/mrm/blob/master/packages/mrm/bin/mrm.js#L70

  console.time("resolveDir");
  const directories = await resolveDirectories(defaultDirectories);
  console.timeEnd("resolveDir");

print: resolveDir: 1:00.790 (m:ss.mmm)

0-Captain avatar May 11 '21 03:05 0-Captain

Try installing mrm-preset-default globally, if it isn't present it will install it with npx (for the current process, so a new install is required the next time as well).

ext avatar Jul 08 '21 20:07 ext

Try installing mrm-preset-default globally

Yes, it solves the problem.

if it isn't present it will install it with npx

I would prefer mrm failing to long silent start (yo behavior). Would be better to be explicit at docs and point that the preset should be also installed with mrm.

zardoy avatar Nov 21 '21 04:11 zardoy

I just ran into this problem too, I had to fall back to a slow network connection.

I did a little debugging, and noticed that mrm-preset-default is DEPRECATED! Seem like there could be some optimization for this case.

BurtHarris avatar Nov 22 '22 05:11 BurtHarris