Re: [PHP] too slow to unset big array (after mem fragment)

2005-01-21 Thread Xuefer Tinys
On Fri, 21 Jan 2005 11:49:30 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > > Perhaps you could store all data with an index of time rounded off to > minutes (hours, whatever). > > Example: > > //15 minutes -- Change larger/smaller for more/less frequent purges > $purge_time = 60 *

Re: [PHP] too slow to unset big array (after mem fragment)

2005-01-20 Thread Xuefer Tinys
On Wed, 19 Jan 2005 16:28:21 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > A question from another naive reader. > > Have you tried re-setting the array to an empty one, using array(), > instead of using unset()? indeed!, unset($arr); $arr = array(); or $arr = array(); directly it's sam

[PHP] too slow to unset big array (after mem fragment)

2005-01-19 Thread Xuefer Tinys
i have a big array with 20k elements, i have no problem building it, because the elements is recv from socket, i can socket_select() on 1k clients, read from them. i plan to unset the whole array every 1hour this is a not big problem when for a few times, it takes me 0.02 seconds but after many hou

Re: [PHP] Re: Persistent PHP web application?

2005-01-17 Thread Xuefer Tinys
to init them once and u get what you want wherever > you want in your files > > On Sun, 16 Jan 2005 11:38:48 +0800, Xuefer Tinys <[EMAIL PROTECTED]> wrote: > > $_SESSION is same as it use serialize/unserialize, alghough there're > > some difference > > &g

Re: [PHP] Best method for threading?

2005-01-15 Thread Xuefer Tinys
nonblocking sockets wont work with select, blocking is ok On Sat, 15 Jan 2005 19:30:14 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Galen wrote: > > I'm working on a web spider application where the server has > > considerable latency in serving the information I require, but > > simultane

Re: [PHP] Re: Persistent PHP web application?

2005-01-15 Thread Xuefer Tinys
$_SESSION is same as it use serialize/unserialize, alghough there're some difference On Sat, 15 Jan 2005 10:06:58 +0100, Zouari Fourat <[EMAIL PROTECTED]> wrote: > what about using $_SESSION arrays ? > > > On Fri, 14 Jan 2005 19:28:24 -0500, Al <[EMAIL PROTECTED]> wrote: > > George Schlossnagle

Re: [PHP] Persistent PHP web application?

2005-01-09 Thread Xuefer Tinys
On Sat, 08 Jan 2005 12:03:10 -0800, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > > You greatly underestimate how slow unserialize is. > > -Rasmus > > you're right, but php-devs seems going to rewrite it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Persistent PHP web application?

2005-01-08 Thread Xuefer Tinys
even apc/eAcc have to copy from shm to php-memory(alloc by emalloc), because $array might be modified anytime i'd guess this is almost same as serialize/unserialize i doubt if there's anyway to have 1 memcpy $array<-from/to->shm, php will release 1 element of $array when the element is unset(refcou

[PHP] Re: php fastcgi win, only 1 concurrent thread?

2005-01-04 Thread Xuefer Tinys
is fastcgi of php active? how much ppl using this? is there any list show activity of each sapi? On Tue, 4 Jan 2005 17:22:34 +0800, Xuefer Tinys <[EMAIL PROTECTED]> wrote: > i'm using external fastcgi > it seems all other request is blocked until the 1 have finished >

[PHP] php fastcgi win, only 1 concurrent thread?

2005-01-04 Thread Xuefer Tinys
i'm using external fastcgi it seems all other request is blocked until the 1 have finished any work arround? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] for win, does sapi/cgi fastcgi handle only 1 request at a time?

2004-12-30 Thread Xuefer Tinys
seems it will block all other php requests i've looked into the source, and seems it's only pre-fork under *nix not win any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php