On 3/25/14, 8:59 PM, Ingo Weinhold wrote: [...] >> 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. Because it means that you can access the structures via a pointer, without having to explicitly read them into memory, with the knowledge that the pointer is correctly aligned. It can significantly improve performance and reduce code complexity, but the downside is that the disk format has to be the same endianness as your code (unless you want to do evil things). -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ │ "You cannot truly appreciate _Atlas Shrugged_ until you have read it │ in the original Klingon." --- Sea Wasp on r.a.sf.w
Attachment:
signature.asc
Description: OpenPGP digital signature