]> git.baikalelectronics.ru Git - kernel.git/commit
Expose "Optimize for size" option for everybody
authorLinus Torvalds <torvalds@g5.osdl.org>
Tue, 13 Dec 2005 19:39:05 +0000 (11:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 13 Dec 2005 19:39:05 +0000 (11:39 -0800)
commitf9ba3fd1e4e4e3b3a80370bcc20e72fbd52cf766
tree302f0b5dfef59ff98de24c83ff4e86915b648c55
parent2d08427cb32eeaaef752f7bd4141881d8b393b95
Expose "Optimize for size" option for everybody

Let's put my money where my mouth is.  Smaller code is almost always
faster, if only because a single I$ miss ends up leaving a lot of cycles
to make up for.  And system software - kernels in particular - are known
for taking more cache misses than most other kinds.

On my random config, this made the kernel about 10% smaller, and lmbench
seems to say that it's pretty uniformly faster too. Your milage may vary.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
init/Kconfig