Re: Seeking design improvements for Perl code library remote serverby flexvault (Parson)
|on Dec 29, 2012 at 15:08 UTC||Need Help??|
First, I don't have a clue about what you are trying to do, but since you do, maybe you could explain why your approach is 'better' or 'easier' or 'friendlier' or 'whatever' for your potential users.
One way to find the value of your code, is to profile your server with 'Devel::NYTProf'. This great tool will help you find your server's bottlenecks and help you improve your server performance. Set a realistic benchmark like ___ (your input needed) serves per minute, and then use the detailed information from 'Devel::NYTProf' to improve your own code. Look for code that can be moved outside of a loop and at the same time it will help you improve your Perl coding skills.
Try to improve your code by 100%. If you only get 1-2% then your code is optimized already. But be honest with yourself.
When you find something that you think could be better, but don't know how to improve the code -- that's when to ask the PM members for specific help. You'll get some good answers and a lot more help.
"Well done is better than well said." - Benjamin Franklin