PHP Classes

v1.2 is slower

Recommend this page to a friend!

      SimpleXML for PHP4  >  All threads  >  v1.2 is slower  >  (Un) Subscribe thread alerts  
Subject:v1.2 is slower
Summary:simplexml-2008-04-26 much slower than previous version
Messages:3
Author:fatbat
Date:2008-04-29 21:42:20
Update:2008-05-08 15:47:49
 

  1. v1.2 is slower   Reply   Report abuse  
Picture of fatbat fatbat - 2008-04-29 21:42:20
I did a small benchmark of an xml file over 20x and the processing time for the new v1.2 script is almost twice as long as the previous version. Output also in array format (which seems faster than the obj output).

v1.2 = ~0.40s
v1.x = ~0.27s

This was obviously with a rather small xml file, but just thought some people might want to know.

Thanks!

  2. Re: v1.2 is slower   Reply   Report abuse  
Picture of Taha Paksu Taha Paksu - 2008-04-29 22:16:24 - In reply to message 1 from fatbat
Yes this version is slower than the first one because the other versions might get the values lesser or wrong. You can try it with some "emoticon.pref" files which you can find in the emoticon packages in http://www.adiumxtras.com/index.php?a=cats&cat_id=2&sort=ranking . I think you will understand the reason of this update. And any suggestions or fixes or improvements,optimizations are welcome. Thank you for your comment.

  3. Re: v1.2 is slower   Reply   Report abuse  
Picture of Taha Paksu Taha Paksu - 2008-05-08 15:47:49 - In reply to message 1 from fatbat
Can you try it again with the new code? I wonder how the result is.