ID:               31332
 User updated by:  marekm at apnet dot pl
 Reported By:      marekm at apnet dot pl
-Status:           Feedback
+Status:           Open
 Bug Type:         Performance problem
 Operating System: *
 PHP Version:      4CVS, 5CVS (2005-01-04)
 New Comment:

I've tested the Win32 snapshot on my serialized data I attached to the
bug report and it seems that it works as fast as it used to work in
4.3.9.
Thanks for solving this problem!


Previous Comments:
------------------------------------------------------------------------

[2005-01-15 23:27:31] gik at zap dot cl

I've compiled the latest snapshot of PHP_4_3 and it seems to be
behaving much better on real-life applications (I haven't tried the
test program attached to this thread yet).  I'll keep testing for a few
more days to be sure the server's performance has returned to normal
levels. 

Thanks for the prompt reaction.

------------------------------------------------------------------------

[2005-01-15 19:55:43] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

Please try this with the next snapshot that is build at 19:30 GMT. I
made some changes to unserialize() that should have restored its
speed.


------------------------------------------------------------------------

[2005-01-14 22:47:03] chris at fast4gl dot com

I'd agree, this is a huge performance issue in 4.3.10/5.0.3 which
really needs to be fixed ASAP.  I've seen many servers with performance
issues because of this bug since upgrading PHP.

------------------------------------------------------------------------

[2005-01-14 18:17:55] dondop at gmail dot com

It has been quite some time now and this is really an important bug to
fix. 

I understand that open source means that development is done when
someone feels like it, but as this is crumbling big shared hosting
solutions where sites run on this PHP which use unserialize() I really
a fix is developed soon. 

Comon devs, wake up and smell some coffee :)

------------------------------------------------------------------------

[2005-01-14 14:40:52] john at jelsoft dot com

I would agree with what Gik just said.

To quote from the PHP manual: 
"serialize --  Generates a storable representation of a value"
Or later:
"serialize() returns a string containing a byte-stream representation
of value that can be stored anywhere.

This is useful for storing or passing PHP values around without losing
their type and structure."

I tried some comparisons a while back on different ways to store PHP
array data in a DB. I tried storing it in a form where I could run
eval($data) and it turned out to be a lot slower than
unserialize($data). (Perhaps this would be different given this bug).
serialize() seems to be ideal for this situation where large array or
object data is to be stored in a DB or shm.

So I was surprised that the usages outlined above are 'abuses', as they
seem to be using serialize() for exactly what it was intended for.
Perhaps the manual needs clarifying if this isn't the case?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/31332

-- 
Edit this bug report at http://bugs.php.net/?id=31332&edit=1

Reply via email to