GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — watch: decrease debounce rate · nodejs/node@f27d505

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • main
      • watch_mode.js
    • test_runner
      • runner.js
    • watch_mode
      • files_watcher.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/main/watch_mode.js‎

Copy file name to clipboardExpand all lines: lib/internal/main/watch_mode.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const args = ArrayPrototypeFilter(process.execArgv, (arg, i, arr) =>
4242
arg !== '--watch' && arg !== '--watch-preserve-output');
4343
ArrayPrototypePushApply(args, kCommand);
4444

45-
const watcher = new FilesWatcher({ debounce: 500, mode: kShouldFilterModules ? 'filter' : 'all' });
45+
const watcher = new FilesWatcher({ debounce: 200, mode: kShouldFilterModules ? 'filter' : 'all' });
4646
ArrayPrototypeForEach(kWatchedPaths, (p) => watcher.watchPath(p));
4747

4848
let graceTimer;
Collapse file

‎lib/internal/test_runner/runner.js‎

Copy file name to clipboardExpand all lines: lib/internal/test_runner/runner.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
419419
function watchFiles(testFiles, root, inspectPort, signal, testNamePatterns) {
420420
const runningProcesses = new SafeMap();
421421
const runningSubtests = new SafeMap();
422-
const watcher = new FilesWatcher({ debounce: 500, mode: 'filter', signal });
422+
const watcher = new FilesWatcher({ debounce: 200, mode: 'filter', signal });
423423
const filesWatcher = { __proto__: null, watcher, runningProcesses, runningSubtests };
424424

425425
watcher.on('changed', ({ owners }) => {
Collapse file

‎lib/internal/watch_mode/files_watcher.js‎

Copy file name to clipboardExpand all lines: lib/internal/watch_mode/files_watcher.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class FilesWatcher extends EventEmitter {
3131
#mode;
3232
#signal;
3333

34-
constructor({ debounce = 500, mode = 'filter', signal } = kEmptyObject) {
34+
constructor({ debounce = 200, mode = 'filter', signal } = kEmptyObject) {
3535
super();
3636

3737
validateNumber(debounce, 'options.debounce', 0, TIMEOUT_MAX);

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.