lkml.org 
[lkml]   [2010]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: hex_to_bin speedup
On Thu, May 27, 2010 at 07:35:05PM +0300, Andy Shevchenko wrote:
> > [1] Benchmark results
> > $ gcc -O2 main.c && ./a.out
> > tolower() was faster 2657 times
> > if-statement was faster 2571 times
> > Equal fast 4772 times
> So, optimizer do the job for tolower(). Thus, nothing to worry about.
Yes I guess so. I tested with -Os too and that also does the trick.
Thank you for your time.

--
iveqy


\
 
 \ /
  Last update: 2010-05-28 23:13    [W:0.041 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site