Skip to content
Snippets Groups Projects
Select Git revision
  • zig default
  • master
  • zig-threaded
  • openat
  • chdir
  • clear
  • compll
  • v1.18.1
  • v2.2.2
  • v1.18
  • v2.2.1
  • v2.2
  • v1.17
  • v2.1.2
  • v2.1.1
  • v2.1
  • v2.0.1
  • v2.0
  • v2.0-beta3
  • v2.0-beta2
  • v2.0-beta1
  • v1.16
  • v1.15.1
  • v1.15
  • v1.14.2
  • v1.14.1
  • v1.14
27 results

dirlist.c

  • 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. :(