Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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.
  • Comment on Re: performance - loops, sub refs, symbol tables, and if/elses

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-05-26 17:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found