When editing files on slow network filesystems,
nedit ofen pauses (due to stat() calls) - how to disable?
hda247 at web.de
hda247 at web.de
Sun Mar 21 20:52:35 CET 2010
Eddy De Greef wrote:
> I'm afraid the only option is to modify the source code.
> [CheckForChangesToFile() - source/file.c]
Ok, thanks for pointing me to the function I'll have to change :-)
> Even if you disable the warnings, NEdit still uses stat() to monitor the
> file attributes (e.g. to update the title when the file is made
> read-only externally).
Maybe the frequency of doing so could be made configurable in some
future release (if there is a future release ;-) - such a check
certainly wouldn't hurt even on a slow network file system when done
only every 5 minutes or alike.
TK Soh wrote:
> I have not looked into the code, but can't the checking be done in a
> way that it doesn't 'tie up' nedit.
I'm afraid that would require at least a separate process/thread and
non-blocking IPC, as there is no non-blocking alternative to the
stat-syscalls. Quite an effort in comparison to just allowing to
configure the interval.
Regards,
Lutz
More information about the Discuss
mailing list