|
|
Subscribe / Log in / New account

Shrinking the kernel with link-time optimization

Shrinking the kernel with link-time optimization

Posted Jan 18, 2018 21:25 UTC (Thu) by intgr (subscriber, #39733)
Parent article: Shrinking the kernel with link-time optimization

What about performance? That should be another big advantage of LTO. Does LTO make the system significantly faster?


to post comments

Shrinking the kernel with link-time optimization

Posted Jan 19, 2018 2:38 UTC (Fri) by gutschke (subscriber, #27910) [Link]

The Linux kernel already does all sorts of tricks to encourage the compiler to inline code where it makes sense and to compute static expressions at compile time. So, I would suspect the main performance benefit is going to be from the smaller binary size. That's nothing to sneer at. More memory that is available for other uses is always a benefit. And more compact code is going to help with better utilization of the instruction cache.

In other words, there almost certainly will be a performance improvement. But my gut feeling is that the numbers are going to be so small, most users would not be able to notice.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds