Messages in this thread | | | Date | Fri, 28 May 2010 23:05:42 +0200 | From | Fredrik Gustafsson <> | Subject | Re: 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
| |