in reply to Re: Re: Perl with a Samba mount
in thread Perl with a Samba mount

in short:

read and write in 32k or 64k blocks (to try to get SMB to go into burst mode).
stat all needed stat vars in one call.

Even with this your bottleneck is the network -- CIFS is not the fastest network protocol under the sun...

-Waswas