question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Too slow on large projects

See original GitHub issue

Description

I am using XO and Ava in a large project. Both packages are too slow to be used. I never actually tried to let them finish. I usually give up after 10+ minutes. I first thought this might be related to globby: https://github.com/sindresorhus/globby/issues/43

As mentioned in that issue I created a test source that reproduces this issue. The glob targets a folder that exists only once.

I opened a separate issue in Ava. https://github.com/avajs/ava/issues/1418

Test Source

Error Message & Stack Trace

nothing happens

Config

https://github.com/pixelass/ava-xo-test/blob/3f9f228f279804d8634a367f5458f69ffbc7d253/package.json#L35-L41

{
  "xo": {
    "ignores": [
      "node_modules/*"
    ],
    "rules": {
      "import/no-unassigned-import": 0
    }
  }
}

Command-Line Arguments

https://github.com/pixelass/ava-xo-test/blob/3f9f228f279804d8634a367f5458f69ffbc7d253/package.json#L10

{
"scripts": {
    "xo": "xo --quiet './**/*.js'"
  },
}
xo --quiet './**/*.js

Relevant Links

Minimal reproduction:
https://github.com/pixelass/ava-xo-test/

Environment

OS X 10.12.5 (16F73)  
Node 6.11.0  

Requested log:

Platform: darwin 16.6.0
xo: 0.18.2
node: 6.11.0
npm: 3.10.10

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:28 (14 by maintainers)

github_iconTop GitHub Comments

4reactions
sindresorhuscommented, Jun 22, 2017

I discovered the main culprit. We didn’t define quiet as a boolean, which made the glob pattern an argument to --quiet and not an actuall pattern, which resulted in XO using its default pattern, which is **/*.

Try changing it to:

- "xo": "xo --quiet './**/*.js'",
+ "xo": "xo './**/*.js' --quiet",
2reactions
niftylettucecommented, Apr 1, 2020

Please close issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with large project is slow - Visual Studio Feedback
I have a large project (about a thousand files) and VS is eating up 2 GM of RAM and then intellisense is either...
Read more >
8 reasons why your digital projects are slow - Enonic
8 reasons why your digital projects are slow - and how to solve them · 1. Too much time spent on maintenance vs....
Read more >
Why are large projects slow regardless of actual CPU/Ram ...
On larger projects, certain actions get slowed down majorly; specifically adding/moving/deleting/duplicating/cutting/copy+pasting plugins & ...
Read more >
Awfully slow Timeline For Large Projects - TechSmith Support
My program just crashed randomly TechSmith really needs to fix this issue. My GPU is only at like 30% usage. I can't imagine...
Read more >
Too slow in large projects #1418 - avajs/ava - GitHub
Description I am using XO and Ava in a large project. Both packages are too slow to be used. I never actually tried...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found