develooper Front page | perl.perl5.porters | Postings from November 2003

Re: [PATCH 5.8.2 @21574] sprintf() painfully slow

Thread Previous | Thread Next
From:
Yitzchak Scott-Thoennes
Date:
November 4, 2003 05:32
Subject:
Re: [PATCH 5.8.2 @21574] sprintf() painfully slow
Message ID:
20031104133154.GB3576@efn.org
cc'd to nospam-abuse@ilyaz.org

On Mon, Nov 03, 2003 at 08:27:39PM -0800, Ilya Zakharevich <nospam-abuse@ilyaz.org> wrote:
> I do not know whether the fact that an operation is an order of magnitude
> slower than it must be should be considered a bug...
> 
> This patch speeds up rounding-to-integer (which is "%.0f") about 15x,
> and g-format sprintf() about 1.5x.  Note that g-formats of the form
> %.<digits>g are now routed through Gconvert().  Do not know whether
> there are versions fo Gconvert() which are good enough for NV-to-PV
> conversion, but not good enough for sprintf() emulation.  If there
> are, this routing should be made optional.

One area I know Configure doesn't test prospective Gconvert for is
inf/nan handling.  Wouldn't surprise me if some gcvt's don't do that
where sprintf does, but as you say that's already an existing issue
for NV-to-PV conversion.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About