Re: Re: How to cache zval * in HashTable?

From: Date: Mon, 09 Aug 2010 08:43:48 +0000
Subject: Re: Re: How to cache zval * in HashTable?
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-7429@lists.php.net to get a copy of this message
hi, look at igbinary. However serializing 1000s large array sounds like a design mistake. Are you sure a DB is not better for your case? In the implementation. Cheers, 2010/8/9 xiangchao liu <iwind.liu@gmail.com>: > Sadly, serialize and unserialize an large array (maybe 1000 elements) is too > slow for me. > > > 2010/8/9 Johannes Schlüter <johannes@php.net> > >> On Mon, 2010-08-09 at 13:56 +0800, xiangchao liu wrote: >> > Hi, everyone, >> > >> > I now want to cache zval * in global variable HashTable, so i can >> retrieve >> > it through requests, codes like below: >> >> A zval is allocated in per-request memory so you can't just store it and >> retrieve it for the next request. You have to serialize it in some way, >> which won't always work (instances of internal classes) >> >> The implementation of apc_store() might show you what is possible. >> >> johannes >> >> >> >> -- >> PECL development discussion Mailing List (http://pecl.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > > -- > Architect, Bokan Technologies > > BokanTech.com > -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

« previous php.pecl.dev (#7429) next »