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

Script exponentially slower as number of files to process increases

by xnous (Sexton)
on Jan 25, 2023 at 20:04 UTC ( [id://11149878]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    wget http://www.astro.sunysb.edu/fwalter/AST389/TEXTS/Nightfall.htm
    html2text-cpp Nightfall.htm >nightfall.txt
    mkdir 00; for i in `seq -w 0 3456`; do head -$((RANDOM/128)) nightfall
    +.txt >00/data-$i; done
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    
    $elapsed = tv_interval($t0);
    print "regex: $elapsed\n" if $benchmark;
    
  3. or download this
    for dir in $(seq -w 01 10); do cp -a 00 $dir; done

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11149878]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2024-04-25 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found