Closed KSAlpha closed 5 years ago
Solidified file entries are held in structs as separate members (executable, readonly, ...). We can reduce members and rendering complexity by introducing permission member inside SolidFileEntry struct.
executable
readonly
permission
SolidFileEntry
executable: Vec<FileEntry>
executable: Vec<SolidFileEntry>
readonly: Vec<FileEntry>
readonly: Vec<SolidFileEntry>
file_entries: Vec<SolidFileEntry>
permission: int
I misclicked the close button.
Solidified file entries are held in structs as separate members (
executable
,readonly
, ...). We can reduce members and rendering complexity by introducingpermission
member insideSolidFileEntry
struct.Expected changes
Current implementation
executable: Vec<FileEntry>
->executable: Vec<SolidFileEntry>
readonly: Vec<FileEntry>
->readonly: Vec<SolidFileEntry>
New design
executable: Vec<FileEntry>
+readonly: Vec<FileEntry>
->file_entries: Vec<SolidFileEntry>
SolidFileEntry
:permission: int