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.

Extremely slow with antivirus

See original GitHub issue

The company I work for requires that I run some horrible (but somehow popular) antivirus software on my PC which makes my eslint . take nearly 30 seconds to run on a very small project.

I did a little investigating and all of that slowness occurs in glob-util.js in the call to glob.sync(pattern, globOptions). If I modify globOptions to include ignore: 'node_modules/**' my linting drops to one second.

It appears that crawling node_modules causes my antivirus to kick in for each file, and I’m assuming I can’t be the only one with this problem. In any case, filtering out node_modules before the glob.sync call should certainly speed things up to some degree for everyone.

I understand that there is some complex logic involved with ignoring and unignoring paths so I see why all node_modules paths are included at this point in the code, but is there a chance this could be handled in some other way that would short-circuit the needless crawling? It would be a massive 99% speed increase, at least for me and anyone else in my position.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:43 (24 by maintainers)

github_iconTop GitHub Comments

5reactions
maxtruxacommented, Apr 5, 2016

From the looks of it this could be a huge performance improvement. Provided nobody else wants to solve it in the near future, I’ll take a look at it until the end of the week.

1reaction
Zarelcommented, May 31, 2016

This doesn’t solve my own problem, which is that the huge ignored directory is logs/, not node_modules/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is My Computer is Slow After Installing an Antivirus?
After any antivirus scanner has been installed in a computer, it will be loaded into the computer's memory each time the computer boots....
Read more >
Why is My Computer So Slow? - Tech.co
Run anti-virus software to get rid of it. Your Broadband Is Slow – The culprit could well be your internet connection, not your...
Read more >
Does Antivirus Software Slow Down Your Computer?
A lot of people believe that antivirus software can cause a computer to slow down by 50 percent. Decades ago, this may have...
Read more >
Will my PC run slow after installing the antivirus? - Quora
Yes, antivirus will slow down your computer. Antivirus softwares scan the files and programs on your computer constantly and while doing so they...
Read more >
PC running slow? Here's how antivirus software can help
Old or outdated drivers can be the cause of a slow or unresponsive computer. If yours is freezing, malfunctioning or has poor connectivity, ......
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