Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-12-06 Thread Matt Wilmas
Hi Antony, - Original Message - From: "Antony Dovgal" Sent: Wednesday, December 06, 2006 > On 11/25/2006 02:05 PM, Matt Wilmas wrote: > > Hi Antony, > > > > Just to let you know, I made a couple minor layout changes to the code, and > > also switched to the *_alloca() functions if memory

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-12-06 Thread Antony Dovgal
On 11/25/2006 02:05 PM, Matt Wilmas wrote: Hi Antony, Just to let you know, I made a couple minor layout changes to the code, and also switched to the *_alloca() functions if memory needs allocating, which I understand should be faster on systems that support it. (Patch file (v2) is updated of

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-25 Thread Matt Wilmas
Hi Antony, Just to let you know, I made a couple minor layout changes to the code, and also switched to the *_alloca() functions if memory needs allocating, which I understand should be faster on systems that support it. (Patch file (v2) is updated of course. :-)) Matt - Original Message

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-17 Thread Antony Dovgal
On 11/17/2006 06:52 PM, Matt Wilmas wrote: Antony, Sure, sorry. :-) I thought the straight code would be easier for you guys to simply copy to a local file or such to test, but I don't really know anything about it. :-P http://realplain.com/php/zend_u_strtod-v2.diff Ok, this one looks a bit

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-17 Thread Matt Wilmas
Antony, Sure, sorry. :-) I thought the straight code would be easier for you guys to simply copy to a local file or such to test, but I don't really know anything about it. :-P http://realplain.com/php/zend_u_strtod-v2.diff Matt - Original Message - From: "Antony Dovgal" Sent: Friday

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-17 Thread Antony Dovgal
On 11/17/2006 06:26 PM, Matt Wilmas wrote: Hi Antony! Wow, lots of testing ya did there. :-) Nice. But, just wanted to mention that "Matt's patch" is the one I did back in Aug. Did you see my last message [1] the other day with a new version that only checks for ASCII chars, doesn't do conver

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-17 Thread Matt Wilmas
Hi Antony! Wow, lots of testing ya did there. :-) Nice. But, just wanted to mention that "Matt's patch" is the one I did back in Aug. Did you see my last message [1] the other day with a new version that only checks for ASCII chars, doesn't do conversion from Unicode, etc.? http://realplain.com

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-17 Thread Antony Dovgal
Okay, I got some test results. First of all, both patches seem to be fine, they both fix several failed tests: Zend/tests/zend_strtod.phpt ext/standard/tests/array/range.phpt ext/standard/tests/general_functions/001.phpt ext/standard/tests/math/abs.phpt ext/standard/tests/math/bug30069.phpt Now

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-16 Thread Antony Dovgal
On 11/16/2006 08:59 PM, Andrei Zmievski wrote: Matt and Antony, I this we should go with Matt's patch, since we care only about ASCII characters in strings. Agree. I'm going to spend some time on this, re-test it once again and commit it after that. On Nov 13, 2006, at 4:46 AM, Matt Wilmas

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-16 Thread Andrei Zmievski
Matt and Antony, I this we should go with Matt's patch, since we care only about ASCII characters in strings. -Andrei On Nov 13, 2006, at 4:46 AM, Matt Wilmas wrote: Hi Antony, - Original Message - From: "Antony Dovgal" Sent: Friday, November 10, 2006 On 11/10/2006 02:14 PM, Matt

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-13 Thread Matt Wilmas
Hi Antony, - Original Message - From: "Antony Dovgal" Sent: Friday, November 10, 2006 > On 11/10/2006 02:14 PM, Matt Wilmas wrote: > > Hi Antony, > > > > - Original Message - > > From: "Antony Dovgal" > > Sent: Friday, November 10, 2006 > > > >> Hello all. > >> > >> I would like t

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-10 Thread Antony Dovgal
On 11/10/2006 02:14 PM, Matt Wilmas wrote: Hi Antony, - Original Message - From: "Antony Dovgal" Sent: Friday, November 10, 2006 Hello all. I would like to propose a replacement for current zend_u_strtod() implementation. The patch: http://tony2001.phpclub.net/dev/tmp/u_strtod.diff

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-11-10 Thread Matt Wilmas
Hi Antony, - Original Message - From: "Antony Dovgal" Sent: Friday, November 10, 2006 > Hello all. > > I would like to propose a replacement for current zend_u_strtod() implementation. > The patch: http://tony2001.phpclub.net/dev/tmp/u_strtod.diff > > According to my tests, new implementa

[PHP-DEV] zend_u_strtod() 400% speed up

2006-11-10 Thread Antony Dovgal
Hello all. I would like to propose a replacement for current zend_u_strtod() implementation. The patch: http://tony2001.phpclub.net/dev/tmp/u_strtod.diff According to my tests, new implementation is faster in about 40 (forty) times. The simple script below takes ~1 sec to run with the patch and