On 01/16/2016 05:27 PM, Scott Kostyshak wrote:
On Sat, Jan 16, 2016 at 11:13:23PM +0100, Stephan Witt wrote:
Perhaps a better fix is to disable QFileInfo caching or to call
fi.refresh() every time in FileName::isFileEmpty()?

Is anybody aware of other places having this kind of problem?
Yes, I fixed one here: 43ca05ea. See the discussion in that commit
message. In particular, Pavel suggests that emptying the cache often
would cause a significant performance decrease for some use cases:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg188628.html

And, as I think is said there, we've seen issues with this, when using filesystems with significant latency, e.g., over NFS. It'd be worth adding a comment to isFileEmpty() so
this question doesn't keep arising.

Richard

Reply via email to