Front page | perl.perl5.porters |
Postings from November 2013
From: Father Chrysostomos
November 21, 2013 00:28
Message ID: email@example.com
Simplistic benchmarks show that swipe (stealing a string buffer from
one SV and giving it to another, instead of copying the string) is
faster than copy-on-write (sharing the buffer). That makes sense,
because copy-on-write has a later overhead.
I have tried to speed things up by allowing strings belonging to
PADTMPs (operator targets; used by ops to return values without real-
locating a new SV ieach time) to be swiped.
However, it seems to slow things down, based on a simple
$ time ./miniperl -Ilib lib/unicore/mktables -C lib/unicore -P pod -maketest -makelist -p -w
At the tip of sprout/theft:
And I get consistent results. That means it is 3-4% slower. Yet I
cannot understand why.
Could this be noise? Could someone who actually knows something about
benchmarks have a try? :-)
by Father Chrysostomos