From: Fredrik Gustafsson <iveqy@iveqy.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: hex_to_bin speedup
Date: Fri, 28 May 2010 23:05:42 +0200 [thread overview]
Message-ID: <20100528210542.GG28651@iveqy.com> (raw)
In-Reply-To: <AANLkTinZUTSADw44UJ2g98AFCzs15DVt6zqLYr61HEaS@mail.gmail.com>
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
next prev parent reply other threads:[~2010-05-28 21:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-27 10:07 hex_to_bin speedup Fredrik Gustafsson
[not found] ` <AANLkTinn7aEv0ueW4uRN06XdUbEltTfmjRXEABMRN-7e@mail.gmail.com>
[not found] ` <20100527142848.GA23543@iveqy.com>
2010-05-27 16:35 ` Andy Shevchenko
2010-05-28 21:05 ` Fredrik Gustafsson [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-05-28 21:38 George Spelvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100528210542.GG28651@iveqy.com \
--to=iveqy@iveqy.com \
--cc=andy.shevchenko@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox