gulp-webserver icon indicating copy to clipboard operation
gulp-webserver copied to clipboard

Polling slower than LiveReload.app?

Open bltpc opened this issue 10 years ago • 5 comments

Hi, I am working on a small static website assembled with gulp and served with gulp-webserver during development. Overall it's working fine, however it seems that live reload via gulp-webserver is somewhat slower to reload as compared to the liveReload.app (all of this on OS X 10.10)

I did not do hard measurements, but it's in the range of 1-2 seconds slower after doing e.g. a touch index.html in the root of the build directory. Not critical, but faster is always good.

Is there an explanation for this or better a fix, can the polling frequency be sped up? At this point I have <25 files watched, so would not expect it to be due to the size of the file tree.

bltpc avatar Jan 13 '15 22:01 bltpc

I think as a slow reload than I even gulp-connect.

Is there a reload log that has been output by gulp-connect?

[16:55:40] Starting 'reload'...
[16:55:40] Finished 'reload' after 5.36 ms

lion-man44 avatar Jan 29 '15 08:01 lion-man44

I have 2 files being watched and simply changing a string in a static html file takes over a second for a reload - seems very slow

tomatau avatar Feb 27 '15 21:02 tomatau

#92 You could set the polling interval in the watchOptions - see pull request!

The default interval is high (~5s): https://nodejs.org/docs/latest/api/fs.html#fs_fs_watchfile_filename_options_listener

davidgengenbach avatar Aug 06 '15 13:08 davidgengenbach

+1

kirillgroshkov avatar Feb 29 '16 13:02 kirillgroshkov

I trying https://github.com/hiddentao/gulp-server-livereload It seems that it works faster.

maxim-danilov avatar Apr 18 '16 14:04 maxim-danilov