Skip to content

Slow start on Windows 7 for big folders (even on SSD) #413

@jakub-g

Description

@jakub-g

We use grunt watch in our project with a config like this:

  grunt.initConfig({
    watch: {
      sync: {
        files: ['src/folder1/**', 'src/folder2/**', 'src/folder3/**'],
        tasks: ['sync'],
        options: {
          debounceDelay: 250
        }
      }
   ...

  grunt.registerTask('default', ['watch:sync']);

Those 3 folders amount to ~3000 files.

When I run grunt, it immediately prints that it's watching/waiting:

$ grunt
Running "watch:sync" (watch) task
Waiting...

but in fact, it doesn't "see" the changed files for at least first 10-15 seconds after startup. I.e. I change some files, but the change is not detected and the callback is not fired. It starts being notified about file changes only after some 10-15 seconds from startup.

The folder is located on an SSD drive.

Is this a known issue?
Is this a limitation of Windows?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions