Re: printf() overhead

From: John Richard Moser
Date: Sun Jan 09 2005 - 16:18:28 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Andre Tomt wrote:
| John Richard Moser wrote:
|
|> using strace to run a program takes aeons. Redirecting the output to a
|> file can be a hundred times faster sometimes. This raises question.
|>
|> I understand that output to the screen is I/O. What exactly causes it
|> to be slow, and is there a possible way to accelerate the process?
|
|
| The terminal is a major factor; gnome-terminal for example can be
| *extremely* slow.
|

Is there a way to give the data to the terminal and let the program go
while that happens? Or is there an execution path (i.e. terminal says
"WTF NO") that can be missed that way?

- --
All content of all messages exchanged herein are left in the
Public Domain, unless otherwise explicitly stated.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB4Z8hhDd4aOud5P8RAnhBAJ40RgKIcXdCvhnuHlfZyK60xswjGwCdFef2
rmwEL/yAR74Q96VkpEV6Z2s=
=bpD8
-----END PGP SIGNATURE-----
-
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/