OK.. To test whether dividing the input further will help my case, I ran the tool (to clarify, this tool is not mine, not written in Perl, compiled, and not open source) with varying sizes of input (1, 10, 100, 1000 and 10000 lines).

Ignoring the startup time (as I said, it first loads a big file into memory, but I assumed we can take care of this somehow), the tool itself provides some stats on the time it spends processing the file. Here is the time it took for each input:

1.txt: 3.06 seconds 10.txt: 16.11 seconds 100.txt: 54.12 seconds 1000.txt: 7 min 14 seconds (434 seconds) 10000.txt: 69 min 44 seconds (4184 seconds)

So, I guess, splitting the files is only advantageous if I can process them simultaneously. A very interesting suggestion, nevertheless. Thank you :)


In reply to Re^2: Wait for individual sub processes by crackerjack.tej
in thread Wait for individual sub processes [SOLVED] by crackerjack.tej

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.