Re: [PATCH v7 1/1] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-14 Thread Ondřej Bílka
On Thu, Jun 05, 2014 at 07:56:15PM -0400, David Turner wrote: Optimize check_refname_component using SSE4.2, where available. git rev-parse HEAD is a good test-case for this, since it does almost nothing except parse refs. For one particular repo with about 60k refs, almost all packed, the

Re: [PATCH v7 1/1] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-14 Thread David Turner
On Sat, 2014-06-14 at 17:22 +0200, Ondřej Bílka wrote: On Thu, Jun 05, 2014 at 07:56:15PM -0400, David Turner wrote: Optimize check_refname_component using SSE4.2, where available. git rev-parse HEAD is a good test-case for this, since it does almost nothing except parse refs. For one

[PATCH v7 1/1] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-05 Thread David Turner
Optimize check_refname_component using SSE4.2, where available. git rev-parse HEAD is a good test-case for this, since it does almost nothing except parse refs. For one particular repo with about 60k refs, almost all packed, the timings are: Look up table: 29 ms SSE4.2:25 ms This is