[PATCH v2] x86-64: Optimize strcmp/wcscmp with AVX2

Alexander Monakov amonakov@ispras.ru
Fri Jun 1 15:30:00 GMT 2018


On Fri, 1 Jun 2018, H.J. Lu wrote:
> Please mention strncmp and wcsncmp in commit subject.  OK with this
> change.

Many Intel CPUs reduce operating frequency upon encountering AVX code,
and some have a "spin-up" period when frequency is not yet changed and
AVX code runs at reduced throughput. Thus, why is this change not
detrimental in practice, doesn't it slow down all code (including other
programs running on the same core) as soon as a program makes a call to strcmp?

Alexander



More information about the Libc-alpha mailing list