You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See: https://github.com/shama/gaze/blob/master/lib/gaze.js#L388 existsSync makes a stat syscall, and then lstatSync makes an lstat syscall. This is redundant and a waste of time. Just call fs.lstatSync and handle the exception if the file doesn't exist. This also solves your race condition between the two calls, which currently results in an exception being thrown out of the map call.
The text was updated successfully, but these errors were encountered:
See: https://github.com/shama/gaze/blob/master/lib/gaze.js#L388
existsSync
makes astat
syscall, and thenlstatSync
makes anlstat
syscall. This is redundant and a waste of time. Just callfs.lstatSync
and handle the exception if the file doesn't exist. This also solves your race condition between the two calls, which currently results in an exception being thrown out of themap
call.The text was updated successfully, but these errors were encountered: