On Mon, Sep 07, 2009 at 07:57:29PM +0200, Henrik Grubbström wrote:
> Before:
> $ ./test-pike test.pike
> elems: 10000
> gauge: 57.456952977
>
> After:
> $ ./test-pike test.pike
> elems: 10000
> gauge: 2.815731693
>
> Seems the optimization had effect... :-)
neat!
how fast does the "if (!has_value(arr, item)) arr += ({ item });" case
run?
greetings, martin.
--
cooperative communication with sTeam - caudium, pike, roxen and unix
searching contract jobs: programming, training and administration - anywhere
--
pike programmer working in china community.gotpike.org
foresight developer foresightlinux.org open-steam.org
unix sysadmin iaeste.(tuwien.ac|or).at caudium.org
Martin Bähr http://www.iaeste.or.at/~mbaehr/ is.schon.org
|