12-03-2007 3:17 PM
Hi experts,
I have a problem which is a bit unclear at this point of the time. I have a program with two subroutines and its performance is very poor. So we decided to redesign it into three different individual programs. One for each subroutine and a'HAT' program which calls these two programs. Please let me know if this enhances the performance and if it is feasible.
regards,
anirvesh
12-03-2007 3:21 PM
I don't think adding complexity will enhance performance. But it may, if you'll be doing parallel processing. Can you post your original code?
Rob
12-03-2007 3:25 PM
Hi Rob,
The code is very large. Actually in one subroutine we are identifying the records to be updated and in the other subroutine we are updating the records. So the actual plan is to do parallel processing. So if doing parallel processing does the splitting of the program helps??
Thanks.
12-03-2007 3:30 PM
This may speed up your process, but depending on your system architecture and number of processes, it may slow down others.
You may also run into locking issues.
Rob
12-03-2007 3:32 PM
12-03-2007 3:37 PM
hi rob,
Thanks you and sorry for the duplicate posting. First I posted in a wrong categoery after that I posted in this thread. I will take precaution next time.
regards,
12-03-2007 3:39 PM
hi,
Regarding the locking issues, that was one concern but I jsut wanted to make sure if the splitting enhances the perofrmance which u have confimed. Thank you I also want to know what are the factors that contribute to the peroformance enhancement.
regards,
12-04-2007 12:13 PM
adding one more subroutine would mean one more level to the call stack and extra memory consumption; won't improve performance. Subroutines are used for modularization and readability of code (except Perform on commit subroutines).