Commit Graph

7 Commits

Author SHA1 Message Date
Martchus a43fec4868 Fix memory leak in archiving utilities 2024-03-07 00:29:43 +01:00
Martchus 91ee500b0a Show amended upstream version correctly 2023-09-03 22:09:28 +02:00
Martchus 671c45aae5 Re-use string holding file contents
This should reduce memory allocations while walking through an archive's
files.
2023-06-05 20:52:45 +02:00
Martchus 26caa78956 Reduce memory usage when loading packages
* Avoid creation of map with all archive contents; instead parse packages
  while walking though the archive
* Avoid instantiation of std::string in come cases (using std::string_view)
* Reuse libarchive's archive entry when walking though archive
* Use visitor-based database parser in all places to avoid intermediate big
  array with all package objects
2022-04-20 22:47:10 +02:00
Martchus 90379678ad Improve error handling when opening archive
* Treat an empty archive buffer/file as error as this should never happen
  and it is better to fail early than replacing existing data with nothing
* Query error message also when opening archive from file
2022-02-02 21:16:56 +01:00
Martchus 49aebdd8a5 Fix typos found via `codespell --skip .git -w` 2021-07-03 19:59:57 +02:00
Martchus c1554f4c87 Initial import 2021-02-08 23:53:56 +01:00