Re: COW for strings

2002-04-14 Thread Dan Sugalski
At 11:12 AM +0200 4/9/02, Peter Gibbs wrote: >I don't think we are in a position yet to prove much of anything as regards >real-world Perl programs, but just one data point as an example - using >examples/assembly/life.pasm (changed to 5000 generations) 10% speedup in some circumstances. OK, I'm

Re: COW for strings

2002-04-09 Thread Peter Gibbs
I don't think we are in a position yet to prove much of anything as regards real-world Perl programs, but just one data point as an example - using examples/assembly/life.pasm (changed to 5000 generations) [Pentium 166MHz; linux 2.2.18] Clean CVS checkout (time averaged over 3 runs)

COW for strings

2002-04-09 Thread Dan Sugalski
I've been thinking about this a bit, especially as I play catchup with a few weeks of p6i mail. Here's my current thinking. 1) COW is useful and trivial in those cases where the original string data is immobile. Constants, for example, or mmapped files. $foo = "bar"; $foo _= "baz"; 2)