chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] printf and overhead


From: felix winkelmann
Subject: Re: [Chicken-hackers] printf and overhead
Date: Mon, 4 Feb 2008 06:50:15 +0100

On Feb 4, 2008 1:16 AM, Peter Bex <address@hidden> wrote:
>
> So my suggestion is to swap around fprintf and sprintf, such that sprintf
> contains the string formatting implementation and fprintf just calls
> sprintf followed by display.  That way the entire string is output in one
> big burst instead of one char at a time.
>
> Alternatively, if this would be too much overhead in the typical case
> of writing to a terminal, if it's possible to detect that the port is a
> custom one, follow the route of using sprintf first in that case and the
> current behaviour in other cases.

Good point. I'll take care of this. Could you write a ticket, lest I forget?


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]