small performance improvement to number stuff

From: Date: Wed, 21 May 2003 01:03:43 +0000
Subject: small performance improvement to number stuff
Groups: php.internals 
Request: Send a blank email to internals+get-1835@lists.php.net to get a copy of this message
Hey, Attached is small patch which optimizes the zendi_convert_scalar_to_number() function, by only calling convert_scalar_to_number when it is required. This is a nice speedup of numerical operations, as its not very often you do numerical operations on strings (at least not as often as you do them on numbers :) -Sterling -- "Science is like sex: sometimes something useful comes out, but that is not the reason we are doing it." - Richard Feynman

Attachment: [text/x-patch] faster_numbers.diff
« previous php.internals (#1835) next »