Re: [PATCH v8] refs.c: SSE2 optimizations for check_refname_component

2014-06-16 Thread David Turner
On Mon, 2014-06-16 at 17:06 -0700, Junio C Hamano wrote: > David Turner writes: > > > Optimize check_refname_component using SSE2 on x86_64. > > > > 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 > > ref

Re: [PATCH v8] refs.c: SSE2 optimizations for check_refname_component

2014-06-16 Thread Junio C Hamano
David Turner writes: > Optimize check_refname_component using SSE2 on x86_64. > > 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 > SSE2:

[PATCH v8] refs.c: SSE2 optimizations for check_refname_component

2014-06-16 Thread David Turner
Optimize check_refname_component using SSE2 on x86_64. 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 SSE2: 23 ms This cuts about 20%