Re: [Bug #14388] keyboard under X with 2.6.31

From: Paul Fulghum
Date: Tue Oct 13 2009 - 11:35:03 EST


On Tue, 2009-10-13 at 07:39 -0700, Linus Torvalds wrote:
> It's not a f*cking performance tweak, and you're ludicrous to claim it is.
> It's pointless, and it's making the code _slower_ rather than faster.
>
> Lookie here, Alan - the common sequence is crap like this:
>
> tty_buffer_request_room(tty, buf->size);
> tty_insert_flip_string(tty, buf->base, buf->size);

The performance tweak of tty_prepare_xxx is that you fill
the tty_buffer directly instead of writing data first to a staging
buffer and then calling tty_insert_flip_string, which just copies
from the staging buffer to the tty_buffer. So it saves a copy operation.

--
Paul Fulghum
Microgate Systems, Ltd

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/