This website requires JavaScript.
Explore
Help
Sign In
Aren
/
haiku
Watch
1
Star
0
Fork
0
You've already forked haiku
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
a02541b9b3
haiku
/
headers
/
build
/
private
/
package
/
hpkg
/
PackageFileHeapReader.h
2 lines
59 B
C
Raw
Normal View
History
Unescape
Escape
hpkg format: compress the whole heap Instead of handling compression for individual file/attribute data we do now compress the whole heap where they are stored. This significantly improves compression ratios. We still divide the uncompressed data into 64 KiB chunks and use a chunk offset array for the compressed chunks to allow for quick random access without too much overhead. The tradeoff is a limited possible compression ratio -- i.e. we won't be as good as tar.gz (though surprisingly with my test archives we did better than zip). The other package file sections (package attributes and TOC) are no longer compressed individually. Their uncompressed data are simply pushed onto the heap where the usual compression strategy applies. To simplify things the repository format has been changed in the same manner although it doesn't otherwise use the heap, since it only stores meta data. Due to the data compression having been exposed in public and private API, this change touches a lot of package kit using code, including packagefs and the boot loader packagefs support. The latter two haven't been tested yet. Moreover packagefs needs a new kind of cache so we avoid re-reading the same heap chunk for two different data items it contains.
2013-05-18 06:11:01 +04:00
#
include
<../private/package/hpkg/PackageFileHeapReader.h>
Reference in New Issue
Copy Permalink