Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Perl converters

by Theo (Priest)
on Jun 21, 2004 at 02:11 UTC ( #368351=note: print w/replies, xml ) Need Help??


in reply to Re: Perl converters
in thread Perl converters

I know of one case where a badly written (that's probably the reason) shell script was replaced by a Perl script with a speed gain of a factor of 1275. Not per cent! YMMV

-Theo-
(so many nodes and so little time ... )

Replies are listed 'Best First'.
Re^3: Perl converters
by CountZero (Bishop) on Jun 21, 2004 at 16:17 UTC
    If your shell script uses a lot of "expensive" external commands, may be even in a loop and you can replace that by some internal commands of Perl, the speed gain would be enormous. However, if you "machine translate" such script into Perl by calling exactly the same external commands (through backticks or system), you will be worse off than before.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://368351]
help
Chatterbox?
[Corion]: The code is 00000000, as always, no?
[GotToBTru]: I remember hearing about somebody misplacing a list of code phrases or something
[marto]: 12345
[GotToBTru]: the "nuclear codes" are in the case cuffed to the wrist of some guy
[LanX]: not always
[LanX]: it's up to the Supreme commander
[GotToBTru]: we don't have one of those ;)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2017-01-20 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.