Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Linked lists as arrays: inserting values

by shmem (Canon)
on Sep 25, 2006 at 23:01 UTC ( #574843=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    qwurx [shmem] ~> perl 574821.pl 6000 7000 10000
    Array size: 10000
    ...
               Rate splicing  radiant
    splicing 46.8/s       --     -66%
    radiant   137/s     193%       --
    
  2. or download this
    # called as insert1( \@ary, 1, $_ ) for $START .. $END
    sub insert1 {
    ...
      @$ra = @$ra[0 .. $index-1], $elem, @$ra[$index .. @$ra-1];
    }
    # called as insert1( \@ary, 1, $_ ) for $START .. $END
    
  3. or download this
    qwurx [shmem] ~> perl 574821.pl 600 700 1000 
    Array size: 1000
    ...
               Rate  radiant splicing
    radiant  30.5/s       --     -98%
    splicing 1672/s    5377%       --
    
  4. or download this
    $ perl -v
    This is perl, v5.8.8 built for i586-linux-thread-multi
    ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://574843]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-07-10 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls