Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: performance - loops, sub refs, symbol tables, and if/elses

by krazken (Scribe)
on Dec 19, 2002 at 16:31 UTC ( [id://221149]=note: print w/replies, xml ) Need Help??


in reply to performance - loops, sub refs, symbol tables, and if/elses

You have 3 perl programs...

first one...reads the data and decides which program to send the data to.
second program...does the apple transformations and the apple database stuff
third program...does the banana transformations and the banana database stuff.


Why break it up like this you ask?? Well, you don't have to, but where I am going with this is that the first program can fork off a process and call either the second or third program..and assuming your database can handle multiple transactions at once, you shouldn't be in any trouble from that point. Plus this method would allow you to work over multiple processors on the server to get the maximum performance out of it. Also, from a maintability standpoint, you know you have an apple program and a banana program, so if you have to change the apple logic, you don't have to sift through extraneous code looking for it.

Just a thought. later.
krazken
  • Comment on Re: performance - loops, sub refs, symbol tables, and if/elses

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2025-06-14 16:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.