Re: [PATCH v4 08/23] ewah: compressed bitmap implementation
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jan 23, 2014, 22:17 UTC
- Message-ID
- <20140123221755.GA18964@google.com>
- In-Reply-To
- <20140123220742.GA29357@sigill.intra.peff.net>
Jeff King wrote:
> On Thu, Jan 23, 2014 at 09:53:26PM +0000, brian m. carlson wrote:
Show 9 quoted lines
>> Yes, it will. SPARC requires all loads be naturally aligned (4-byte to >> an address that's a multiple of 4, 8-byte to a multiple of 8, and so >> on). In general, architectures that do not support unaligned access >> require natural alignment for all quantities. > > In that case, I think we cannot even blame Shawn. The ewah serialization > format itself (which JGit inherited from the javaewah library) has 8 > bytes of header and 4 bytes of trailer. So packed serialized ewahs > wouldn't be 8-byte aligned
I don't think that's a big issue. A pair of 4-byte reads would not be too slow.
Even on x86, aligned reads are supposed to be faster than unaligned reads (though I haven't looked at benchmarks recently).