[haiku-development] Re: hpkgs and compression

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 25 Mar 2014 21:59:54 +0100

On 24.03.2014 20:21, Jonathan Schleifer wrote:
Am 24.03.2014 um 11:44 schrieb Ingo Weinhold <ingo_weinhold@xxxxxx>:

But aligning it for mmap() is a good point - though we should use
8 instead of 4 I guess, since some platforms have 8 bytes as
their natural alignment.

mmap()ed data are always page aligned. And this really isn't
relevant in this case, because the alignment within the package
file is completely irrelevant to mmap()ing contained files.

Yes, the start of the data is always page-aligned. What I meant is
making contained data structures 8-byte aligned, like the start of
the heap, the TOC, etc.

Not sure for what reason. I don't see a benefit in mmap()ing these structures anyway.

CU, Ingo

Other related posts: