I know you can use Smart::Comments to display a progress bar. I read it slows down the program- but likely at compilation time and should make absolutely no difference in your case- since we are already anticipating it may take a while.

Is the interface to your software via the terminal? Is this an educated user, thus? Why wouldn't they just use use 'top' ?

How are you getting a list of files to copy? Are you making a system call like 'cp -R ./fromdir ./todir', or are you using File::Find, and then File::Copy one by one?

Why is it taking so long, for a gig?

What's 'so long'? A minute, twenty.. What speed is your hard drive read/write rate- 44100 rpm ? 15000 rpm? What's your filesystem? What's your operating system?

Would you consider benchmarking the difference between copying 1 gig via File::Copy and system cp ?

I have some code that creates random junk on disk to benchmark md5 sum calls, might be useful.


In reply to Re: Copying a directory and its contents wihile displaying a progress bar by leocharre
in thread Copying a directory and its contents wihile displaying a progress bar by bittis

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.