When you say: When I run this script over 60,000 files on my local machine it takes about 6 minutes. When I run it over the files on the Samba mount it takes over two hours. What are you doing to these files? are you just looking at file names? are you stating multiple times for size mod date etc? are you slurping the data? Show us some code. Off the top of my head, I can think of a few things that can go wrong here, for instance grabbing multiple items such as mod time size etc can make multiple requests over the network for each file unless you do it correctly If you are slurping files to do proccessing of them *welp* the network is going to be way slower than a local hard disk. Give me more info on what you are doing and I can give you some pointers.

-Waswas

In reply to Re: Perl with a Samba mount by waswas-fng
in thread Perl with a Samba mount by fletcher_the_dog

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.