Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Perl with a Samba mount

by Beatnik (Parson)
on Jan 03, 2003 at 15:10 UTC ( [id://224032]=note: print w/replies, xml ) Need Help??


in reply to Perl with a Samba mount

IMHO you'll always come across performance bumps when using network drives. How can you tell for sure that non-perl programs don't have that problem? Are they accessing those 60,000 files as well? For Perl, a file is a file, no creed or col.. uhm no extension or filesystem makes really a difference. That's all stuff the underlying OS will have to do.

Ofcourse, chances are someone with p5p will now smack me right in the face and deny every little detail of my node :) but that's how it makes most sense to me.

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.

Replies are listed 'Best First'.
Re: Re: Perl with a Samba mount
by fletcher_the_dog (Friar) on Jan 03, 2003 at 15:18 UTC
    "IMHO you'll always come across performance bumps when using network drives. How can you tell for sure that non-perl programs don't have that problem? Are they accessing those 60,000 files as well? "
    Yes, in fact they run over the exact same 60,000 files. There is a slight performance bump of ~30 seconds, from 13m14s to 13m35s. Compare this to a 2+ hour increase.
      I assume those non-perl programs are binaries? In some recent testing I did in image manipulation, a pure C solution linked to libgd was about 50 times faster than a perl solution linked to GD.pm. Perl scripts, by nature, are slower than binary applications. Perl scripts need to be interpreted. There are entire layers of logic between how you program it and how the system eventually executes the code eventually generated by the underlying endgine. It all depends on how your code is written :) Maybe it's time to grab Devel::DProf and have a field day tweaking :)

      Greetz
      Beatnik
      ... Quidquid perl dictum sit, altum viditur.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://224032]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2024-04-18 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found