Vincent van Ravesteijn - TNW wrote:
So, if there are four filesystem-checks in Linux, there are at least six on Windows and maybe the compiler does something smart when os::internal_path does nothing.

That would make it worse. But enough worse that I see nothing
here? Is network file system performance much >slower under
Windows? Can some of these checks be turned off, just as a test?

If I turn off both the os::internal_path calls and the refresh calls,
LyX is running smoothly.

Well, that's at least some progress.

At least for me it is. I do still wonder why the other people get the
delay. They either have just a very slow harddisk or there must be
something else.

I find this very puzzling. We've seen some weird things involving slow drawing before, but it's hard to see why that would happen with children, etc. Of course, it'd be a lot easier to figure this out if I could reproduce it. Maybe I'll try it on my wife's machine later. Then I'll at least be able to see it happen for myself.

Another difference is the following piece of code:
117 #if defined(_WIN32) || (QT_VERSION >= 0x999999) 118 fi.refresh(); 119 #else 120 fi = QFileInfo(fi.absoluteFilePath()); 121 #endif
Maybe, fi = QFileInfo(fi.absoluteFilePath()) is faster than
fi.refresh().

Hard to see why it would be. The construction of a QFileInfo object presumably accesses the file system in the same way? Though maybe it's "lazy" and just waits to access when it needs to.

rh

Reply via email to