View Single Post
Old 04-05-2019, 11:37 AM   #124
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,631
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
The point that seems to be missed in this discussion is that Preview ALWAYS loads the entire file each time. It does this everytime a change is made in code in the CodeViewEditor. It always has.
Does merely moving the cursor to a new location in the current Code View Editor tab constitute a code change? I ask because that's what we seem to be experiencing on Windows. With files that contain images/embedded fonts, you can watch Preview reload everything (including a move to the top of the page), and then scroll down to the new cursor position just by repositioning the cursor in the current Code View Editor tab.

Quote:
Originally Posted by KevinH View Post
The clearing of the memory caches is only done if you ask to Preview a file that is from a different CodeViewEditor Tab/Resource. If you look at the code it checks the url against the currently loaded one to determine if it is okay to clear memory caches that hold fonts, javascripts, images and other resources. The current cache is worthless in that case anyway.
I can see from the code that that's what should be happening, but I'm not certain it's working as expected on Windows. As mentioned above, merely moving the cursor in the current Code View Editor tab seems to trigger a clearing/reloading of the memory caches that hold fonts, javascripts, images, etc...

I'll try to get some debugging output after work this evening to make certain of what's going on.

EDIT: just verified that the same effect doesn't happen on Linux. So if I had to guess, I'd say there's something about the windows paths being bandied about that is making:

Code:
if (url().path() != path)
Always resolve to True on Windows.

But yes .... this is all still a completely separate issue from the severe Windows 10 performance problems being reported by a handful of people that we've been trying to track down.

Last edited by DiapDealer; 04-05-2019 at 12:10 PM.
DiapDealer is offline   Reply With Quote