aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/tst-clone2.c
diff options
context:
space:
mode:
authorKuan-Wei Chiu <visitorckw@gmail.com>2024-09-10 00:23:27 +0800
committerDJ Delorie <dj@redhat.com>2024-12-11 17:04:42 -0500
commit950891b5e7a5307272da3e632832ac9da4c9eeec (patch)
tree662ca8083bce3ecc18c526b8e2c4e545bc485240 /sysdeps/unix/sysv/linux/tst-clone2.c
parentdce846c789b68a86721d7bfc6f18c728c8c6d3bf (diff)
downloadglibc-950891b5e7a5307272da3e632832ac9da4c9eeec.zip
glibc-950891b5e7a5307272da3e632832ac9da4c9eeec.tar.gz
glibc-950891b5e7a5307272da3e632832ac9da4c9eeec.tar.bz2
Optimize bsearch() implementation for performance
Optimize the bsearch() function to improve binary search performance. Although the code size grew by 8 bytes, the new implementation achieves a 15% reduction in execution time on my x86 machine, according to the bench-bsearch benchmark results. Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com> Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com> Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/tst-clone2.c')
0 files changed, 0 insertions, 0 deletions