Skip to content
Snippets Groups Projects
  • Yorhel's avatar
    77aca35f
    Add support for optional "extended" information for each file/dir entry · 77aca35f
    Yorhel authored
    Unfortunately, there wasn't a single bit free in struct dir.flags, so I
    had to increase its size to 16 bit. This commit is just the initial
    preparation, there's still a few things to do:
    
    - Add "extended information" cli flag to enable/disable this
      functionality.
    - Export and import extended information when requested
    - Do something with the data.
    
    I also did a few memory measurements on a file list with 12769842 items:
    
      before this commit:    1.239 GiB
      without extended info: 1.318 GiB
      with extended info:    1.698 GiB
    
    It's surprising what adding a single byte to a struct can do to the
    memory usage. :(
    77aca35f
    History
    Add support for optional "extended" information for each file/dir entry
    Yorhel authored
    Unfortunately, there wasn't a single bit free in struct dir.flags, so I
    had to increase its size to 16 bit. This commit is just the initial
    preparation, there's still a few things to do:
    
    - Add "extended information" cli flag to enable/disable this
      functionality.
    - Export and import extended information when requested
    - Do something with the data.
    
    I also did a few memory measurements on a file list with 12769842 items:
    
      before this commit:    1.239 GiB
      without extended info: 1.318 GiB
      with extended info:    1.698 GiB
    
    It's surprising what adding a single byte to a struct can do to the
    memory usage. :(