haiku/headers/private/package
Augustin Cavalier f44cb411cc Package Kit & packagefs: Allocate scratch buffers for decompression further up.
Zstd wants a ~90 KB scratch buffer to decompress our 64 KB chunks.
Rather than let it allocate that itself every time, pass in a 2*64KB
"scratch" buffer and statically allocate the working memory from it.
Pass it down using iovecs, and pass down the other buffers in the same
way, to reduce parameters.

Further, rework the object_cache used for heap decompression buffers
to contain objects sized as 4x64KB, so we only need to do one allocation
and deallocation for the compression/decompression and scratch buffers.
Set the minimum reserve to 1 so that the low-memory manager doesn't
reclaim this, as we'll need it when reading back data.

Improves packagefs I/O performance (and thus boot speeds at least a bit,
it appears.)

Change-Id: Id51f6f598b33b9d757a283184c533bb97049529f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8717
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-12-30 19:04:10 +00:00
..
hpkg Package Kit & packagefs: Allocate scratch buffers for decompression further up. 2024-12-30 19:04:10 +00:00
manager
ActivateRepositoryCacheJob.h
ActivateRepositoryConfigJob.h
ActivationTransaction.h Package Kit: Proper Installation for First Boot Packages 2021-03-14 09:10:18 +00:00
ChecksumAccessors.h
DaemonClient.h
DaemonDefs.h Package Kit: Proper Installation for First Boot Packages 2021-03-14 09:10:18 +00:00
HashableString.h
packagefs.h
PackagesDirectoryDefs.h
RemoveRepositoryJob.h
TempfileManager.h
ValidateChecksumJob.h