Join GitHub today
Lazy loading of the pseudo-sub-directories #18
Under the assumptions that in general users rely on pseudo-directories to structure their data and that they do not fully expand the tree, a lazy loading approach would significantly improve perceived performances and memory consumption (and thus preventing some nasty out-of-memory errors from occurring).
Lazy loading consists in loading the data only when we need to show them, i.e., when a node is expanded so that they become visible.
Considering the tree view, the required data should be loaded when a node is expanded (using the handle, or double-clicking on the node, or previewing the node). Regarding the list view, the data should be loaded when a directory is either double-clicked on or previewed.
Note: the search function is currently limited to the items already loaded; therefore, after the implementation of a lazy loading approach, this search function (as it is currently implemented) would become less relevant (to say it euphemistically...).