isaacs / isaacs/node-glob

Possible to set a "nice" level or a throttle of some sort?

Open
#531 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.7k
Forks
538
PR merge metrics
No merged PRs in 30d

Description

First of all, thanks for this excellent library!

I'm using it in an electron app and the end user can point the app at any directory they'd like, and then the app finds and processes particular types of files in that folder using a glob pattern.

If the user points it at a particularly large folder then the glob process can take several seconds (or minutes!) and the application becomes very sluggish while this happens.

It would be awesome to be able to set a "nice" level or somehow be able to indicate that a slower walk is acceptable in exchange for not clobbering the system.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing the glob walk used by the Electron app and reviewing how large-directory processing currently affects responsiveness. Done would mean a documented, configurable way to slow or throttle processing so large-folder scans no longer make the application excessively sluggish.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, node.js, typescript
Domain
performance, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.