-
- Downloads
Add support for optional "extended" information for each file/dir entry
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. :(
Showing
- src/dir.h 5 additions, 9 deletionssrc/dir.h
- src/dir_common.c 1 addition, 15 deletionssrc/dir_common.c
- src/dir_export.c 6 additions, 4 deletionssrc/dir_export.c
- src/dir_import.c 35 additions, 32 deletionssrc/dir_import.c
- src/dir_mem.c 13 additions, 22 deletionssrc/dir_mem.c
- src/dir_scan.c 63 additions, 53 deletionssrc/dir_scan.c
- src/dirlist.c 1 addition, 1 deletionsrc/dirlist.c
- src/global.h 12 additions, 3 deletionssrc/global.h
- src/util.h 13 additions, 0 deletionssrc/util.h
Loading
Please register or sign in to comment