Re: When editing files on slow network filesystems, nedit ofen pauses (due to stat() calls) - how to disable?
"hda247-S0/
[email protected]" <hda247-S0/
[email protected]>
Sun, 21 Mar 2010 20:52:35 +0100
| Newsgroups |
gmane.editors.nedit.user |
| Message-ID |
<[email protected]> |
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
--
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss