lkml.org 
[lkml]   [2011]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/1] boot: Enhance performance by eliminating unnecessary calls to printf()
From
Date
On Sun, 12 Jun 2011 12:36:28 MDT, Jean Sacren said:

> Subject: [PATCH 1/1] boot: Enhance performance by eliminating unnecessary calls to printf()
>
> Repeated calling to printf() for 13 times is a dire waste of CPU cycles.
> For performance, combine all those calls into one while source code
> formatting is preserved for readability.

*facepalm*

I defy anybody to find a *less* performance-critical piece of code to
micro-optimize. It doesn't even make a boot faster, it makes a kernel build
non-measurably faster.

If you wanted to make kernel builds faster, go look at Ingo's numbers regarding
the current #include mess - fixing *that* will be of more benefit than this...

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2011-06-14 20:25    [W:0.059 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site