[PHP-DEV] copy-on-write

2002-04-11 Thread brad lafountain
How much COW does php do?... I saw a post that it does it for arrays? what else does it do it for. I was thinking that a COW per zval would be good. expecially when you get into large arrays. $a = array(/*1 items*/); $b = $a; $b[999] = false; will this copy all elements or just copy one?

Re: [PHP-DEV] copy-on-write

2002-04-11 Thread Andi Gutmans
At 14:04 11/04/2002 -0700, brad lafountain wrote: How much COW does php do?... I saw a post that it does it for arrays? what else does it do it for. I was thinking that a COW per zval would be good. expecially when you get into large arrays. $a = array(/*1 items*/); $b = $a; $b[999] =