Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Speeding up stalled script

by graff (Chancellor)
on Feb 03, 2015 at 07:38 UTC ( [id://1115351]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(IN1, '<', $input1) or die "Can't read source file $input1 : $!\n"
    +;
    my $minlength = 1<<20;
    ...
        }
    }
    close IN2;
    
  2. or download this
    my $max_source_length = ( sort {$b<=>$a} keys %source_lengths )[0];
    
    ...
        }
        ...
    }
    
  3. or download this
        my @usable_sources = @{$source_lengths{$source_key}};
        printf "for an input1 string of length %d, we can choose from %d i
    +nput2 strings\n", $size, scalar @usable_sources;
    ...
            my $string = $source[$offset];
            # do whatever...
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found