[haiku-development] Re: hpkgs and compression

  • From: David Given <dg@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 22 Mar 2014 18:54:16 +0000

On 22/03/14 17:23, Jonathan Schleifer wrote:
[...]
> Yes, you might be right about the alignment part not making that much of a 
> difference.

Android packages are signed zipfiles, and have much the same access
patterns as hpkgs; there's a special tool called zipalign which ensures
that the files in the zipfile are 4-aligned. This allows Android to
mmap() the zipfiles and access file data using 32-bit instructions. i.e
they are *not* aligning the files to block boundaries, presumably
because they think it's not worth it.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "There does not now, nor will there ever, exist a programming
│ language in which it is the least bit hard to write bad programs." ---
│ Flon's Axiom

Attachment: signature.asc
Description: OpenPGP digital signature

Other related posts: