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

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

Thread Previous | Thread Next
Yitzchak Scott-Thoennes
November 4, 2003 05:32
Re: [PATCH 5.8.2 @21574] sprintf() painfully slow
Message ID:
cc'd to

On Mon, Nov 03, 2003 at 08:27:39PM -0800, Ilya Zakharevich <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About