Files: Caching of files and folders

Created on 3 Nov 2019  ·  9Comments  ·  Source: files-community/Files

Is your feature request related to a problem? Please describe.
It seems, that when entering any folder, Files UWP is reloading the files and folders, that are contained inside this folder every time. Also navigating back and forth results in reloading the contained files and folders every time.

Describe the solution you'd like
I would like them to get cached, so that it is much faster to enter folders. (and I hope the slow loading animation is also gone afterwards.)

Describe alternatives you've considered
Also if e.g. a file or folder is added via another program or file explorer, Files UWP should show the new files or folders inside the folder instantly without having to reload the whole folder.

Additional context
The file explorer is able to do that, so it feels much faster then the current Files UWP.

I don't know, if this behaviour is meant with #213 so I opened this feature request.

enhancement wontfix

All 9 comments

Virtualization for items is something I would definitely want to implement. Unfortunately, there doesn't exist documentation on this feature for the Toolkit DataGrid, so I assume the control doesn't support it. @yaichenbaum Can you verify whether the DataGrid supports virtualization?

My mentality is: "Sure, the Windows.Storage namespace is slow, but users never really need to retrieve the properties of all filesystem items at once" That's where random-access virtualization would come in, but the DataGrid, to my knowledge simply doesn't support it.

As far as I know it does not but I believe it was requested for the new Win UI DataGrid control.

As far as I know it does not but I believe it was requested for the new Win UI DataGrid control.

@yaichenbaum Do you have a link? I would like to read about that.
Or is this what you are refering to?

@szaimen I am talking about this one.

Would be really nice, if that would provide a way to show the size of folders.
Alternatively I imagine that if you right-click on one or more folders (after selecting a few folders and right-click then), then you could show an option in the right-click menu to calculate the current size (and show it directly in the list), so that you are able to sort all files and folders based on their size for the current directory afterwards. (until you change something inside the folders and then reset the calculated size)
Shall I open a new issue for this idea or does it fit here?

@szaimen Probably add that suggestion to https://github.com/duke7553/files-uwp/issues/259

Because we'll probably add that information to the properties dialog

@szaimen We did work to prevent reloading the extended properties of a storage item if it's not scrolled into view. Since performance has improved from these changes, I do not believe caching items is particularly useful.

Please re-open this if you can find a technical rationale for for caching files and folders. For instance, what properties should be cached and how would it benefit performance?

Thanks for the great feedback. Please keep it coming!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChenShihuan picture ChenShihuan  ·  3Comments

SOI7 picture SOI7  ·  3Comments

szaimen picture szaimen  ·  4Comments

jbvc97 picture jbvc97  ·  3Comments

xmha97 picture xmha97  ·  3Comments