Following the lines of code which will soon be integrated into the Linux core so as to boost the performance of the desktop environment, a Red Hat developer has now offered up similar with only four lines of code.
Last week, the creator of the Linux kernel couldn’t hide his enthusiasm for the work done by Mike Galbraith. The man had produced a patch for the Linux core which adds a little more than 220 lines of code, with these being related to the way the system is modified and operated.
This patch has been designed to automatically create groups of tasks for each TTY so as to improve the interactivity of the desktop environment which is heavily used. It is aimed at reducing the latency factor by 10 times in the graphics environment. Phoronix has noticed performance improvements when playing a video in 1080p.
Usually rather critical, Linus Torvalds hailed this small patch for its performance improvement and notably found it to be very interesting for its positive impact on the speed at which web pages are loaded. "I had always associated this with the network performance". The patch should be integrated into version 2.6.38 of the Linux kernel.
Without waiting for this integration, a Red Hat developer has instead proposed four lines of code which provides a similar result, with this being done by editing the user’s ~/.bashrc file and adding a few commands. WebUpd8 explains the steps to follow for Fedora and Ubuntu.
The solution offered up by Lennart Poettering is easier to implement and can be done by the user. For Linus Torvalds, the difference between the two approaches resides in the automation and, in this sense his preference is for the patching of the Linux core. "It’s something that we want to do for all users, and for all shells, with certitude that it will be done automatically".