Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15542 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88453 invoked by uid 1010); 22 Mar 2005 16:29:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 88438 invoked from network); 22 Mar 2005 16:29:29 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 22 Mar 2005 16:29:29 -0000 X-Host-Fingerprint: 194.109.193.120 unknown Linux 2.4/2.6 Received: from ([194.109.193.120:49389] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id A5/5C-36163-9E740424 for ; Tue, 22 Mar 2005 11:29:29 -0500 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id D5C4FBA1D3; Tue, 22 Mar 2005 17:29:30 +0100 (CET) Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (moulin [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16648-03; Tue, 22 Mar 2005 17:29:28 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id CE640BA1D2; Tue, 22 Mar 2005 17:29:27 +0100 (CET) Message-ID: <424047E2.9080005@iamjochem.com> Date: Tue, 22 Mar 2005 17:29:22 +0100 User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: shruti Cc: internals@lists.php.net References: <20050322155130.28195.qmail@web53802.mail.yahoo.com> In-Reply-To: <20050322155130.28195.qmail@web53802.mail.yahoo.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at moulin.nl Subject: Re: [PHP-DEV] Unserialize() From: jochem@iamjochem.com (Jochem Maas) shruti wrote: > Hello all, > I have an issue with unserializing big objects. My object when serialized to a file creates a file as big as 29 Megs. And when i m trying to unserialize the object, it takes forever somewhere around 33-36 secs(sometimes even more). > > My object has one member variable which is a reference to an array. > > I was using PHP5.0.2 I read about some bugfixes with unserialize. So I grabbed the most latest snapshot from CVS 5.0.4 RC4. (Dint help me though) > > Alternately I also tried > $s = ""; > and then writing this string to a cache file (Creates a file as big as 29Megs). > Next time when the cache is found I say..require($cachefile); > and then use the $var to recreate myobj. > This also proved out to be too slow for me. Any comments on how should I handle this issue. > If you want i can send the code to you. Could you please help me on this? what is this object? what does it do? and why does it contain 29Megs of stuff? _seems_ to me like the architecture is not right if the serialized object is 29 Megs. > > Waiting for a reply eagerly, > Thanks a lot > > Regards, > --shruti. > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site!