forked from cockpit-project/cockpit-files
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Substantially rework navigator to be based on the new 'fsinfo' channel provided by Cockpit. This new channel is only on the Python bridge, and has yet to appear in a released version of Cockpit, so (unconditionally) re-engage our existing code to install a version of the wheel from cockpit git. We also temporarily host some code here (fsinfo.ts) which will eventually make its way into cockpit.js. In addition to being a simplification of the code, this *dramatically* improves the performance of cockpit-navigator, making it possible to open large directories, such as /usr/lib64. Some quick measurements on that directory show that it takes only 58ms until we get the full set of data from the channel and convert it into the list of files for the navigator. From there, the performance of React isn't excellent, but we can fix that in the future using something like `react-windowed` or PatternFly's `react-virtualized-extension`. This is a very rough first pass which tried to avoid touching too much unrelated code, but despite that, there were quite some changes (since the use of the old data model reached deep into various corners of the codes, and they needed to be updated). Closes: cockpit-project#137
- Loading branch information
1 parent
67d580b
commit 78ec505
Showing
7 changed files
with
257 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.