Re: comparison function for qsort() question
- From: David Mathog <mathog@xxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 14:43:48 -0800
David Mathog wrote:
Any thoughts on whether the second function form would usually be faster, slower, or the same?
I forgot to mention, on gcc 4.1.2 on an opteron system the memcmp() form runs about 25% faster on a test with a sort of 125M words of 5 bytes each. So I knew that it worked better with _some_ compiler, I was just curious how common that was likely to be.
Regards,
David Mathog
.
- Follow-Ups:
- Re: comparison function for qsort() question
- From: Randy Howard
- Re: comparison function for qsort() question
- From: David Mathog
- Re: comparison function for qsort() question
- References:
- comparison function for qsort() question
- From: David Mathog
- comparison function for qsort() question
- Prev by Date: Re: comparison function for qsort() question
- Next by Date: Re: Strange C operator
- Previous by thread: Re: comparison function for qsort() question
- Next by thread: Re: comparison function for qsort() question
- Index(es):