[Top][All Lists]

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

Re: [avr-libc-dev] printf speed up and presentation of new functions

From: Dmitry K.
Subject: Re: [avr-libc-dev] printf speed up and presentation of new functions
Date: Wed, 9 Feb 2005 09:50:56 +1000
User-agent: KMail/1.5

On Tuesday 08 February 2005 07:15, you wrote:
> Hi Dimitry,
> > Now performance of function `sprintf(s,"%d",12345)' takes more than
> > 7000 clocks. The reason -- division (long) which is required for a
> > conversion of each digit. I have tried to replace division into more
> > simple operations. In result this time became 1500 clocks. For 'hex' or
> > 'octal' -- 1100 clocks. The general size has a little decreased. (After
> > the termination of testing I shall send a patch on `savannah'.)

Now approx. 1800/1000.

> Your work is very much appreciated! I would be more than willing to help
> you testing these functions: Next month I probably would have addressed a
> very similar issue for the purpose of displaying numbers on a LCD.
> Yours,
> Björn

I have send a preliminary version (avr-libc patch #3729).
You may add new tests, or simply increase loop counters
in randoms.


reply via email to

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