Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 12 Jul 2012 13:11:00 -0400
From: Rich Felker <>
Subject: Re: musl build times

On Thu, Jul 12, 2012 at 12:47:47PM -0400, wrote:
> > On Thu, Jul 12, 2012 at 06:41:09AM -0700, wrote:
> >> I was just playing around, and discovered that redirecting to a file
> >> shaves 1 minute, 5 seconds (3:36 vs 2:31) off the build time here (Atom
> >> N270 @1.6 GHz; 5400 RPM SATA HDD in legacy mode, ext2; 1 GB DDR2; gcc
> >
> > You mean directing output to a file versus to a terminal? If so, which
> > terminal are you using? That's probably very relevant...
> Probably so...
> kernel VT with i915 + fbcon.

That's the problem.

> Now that I think back, I think real textmode was significantly faster.
> By the way, this is the same reason "quiet" speeds up boot (my testing
> showed ~ 2-3 seconds difference in kernel boot, out of ~8 seconds without
> quiet...)
> I've noticed similar effects with Xterm & urxvt, though ISTR that urxvt
> can be sped up with asynchronous text output (I forget the option,
> though).

Most/all of these terminals have a fundamental design flaw: when they
receive text from the application, after applying the changes to their
internal representation of the terminal contents, they immediately,
synchronously, update the visual presentation on-screen, delaying
processing of any further input and allowing it to back up. This is
pathologically inefficient, and didn't matter so much for traditional
vga textmode terminals, but the inefficiency becomes very noticable on
fbcon and X-based terminals.

[Shameless plug starts here:] The only terminal I know of without this
design issue is uuterm. In its main select loop, it processes input
and applies it to its internal terminal representation as long as
input is available. Only when no further input is available (as
determined by select), or when a long interval of time has passed with
no break in the input stream, is the internal representation applied
to the screen contents. Even with a fairly expensive text rendering
system that accounts for unicode combining characters and glyph
substitution, it's still many times faster than the Linux console and
most X-based terminal apps just because it doesn't perform repetitive
video updates only to overwrite them immediately with new updates.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.