public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Using unsigned int for loop counters - better performance for  Architectures - urban hacker legend?
@ 2010-07-30 23:53 Luis R. Rodriguez
  2010-07-31  9:38 ` David Newall
  0 siblings, 1 reply; 4+ messages in thread
From: Luis R. Rodriguez @ 2010-07-30 23:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: doug.dahlby, Jiri Slaby

For good while now I have been using unsigned int for every looper
iterator I implement on the kernel. I remember I picked this practice
up from Jiri but I just tried to look for actual documentation of this
online and could not find much. A simple test would be to run a series
of loop tests on different architectures with a regular int and then
with an unsigned int to see if performance improves but I obviously
don't have access to many machines with varying architectures.

So if you also follow this practice have you actually found evidence
for this practice, have you actually measured performance metrics? Or
is this just a urban hacker legend?

Please CC me as i am not subscribed to lkml.

  Luis

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-03 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-30 23:53 Using unsigned int for loop counters - better performance for Architectures - urban hacker legend? Luis R. Rodriguez
2010-07-31  9:38 ` David Newall
     [not found]   ` <B7132A25476D334D9130FE7532F2A563109FED150D@SC1EXMB-MBCL.global.atheros.com>
     [not found]     ` <20100802193712.GB8920@tux>
     [not found]       ` <B7132A25476D334D9130FE7532F2A563109FED151A@SC1EXMB-MBCL.global.atheros.com>
2010-08-02 20:48         ` Luis R. Rodriguez
2010-08-03 10:06           ` David Newall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox