On Fri, Mar 23, 2012 at 9:20 AM, Vinay Gavankar <vinaygav@xxxxxxxxx> wrote:
I "assumed" that these functions were more efficient than
regular RPG commands. If that is not the case, I would
rather use RPG or SQL, if that is more efficient.

I'm with Vern here. Or actually, with whoever said not to optimize.

I think it is always worth striving for better readability and better
maintainability. If there are algorithm-level improvements to be
made, make those. Other than that, leave the optimization to the
compiler or query engine. Especially if you don't notice that
something is too slow. I haven't really tested RPG code next to C
code to see which is faster, but from the seat of my pants, RPG
programs feel pretty fast. (And I don't even use compiler

If some piece of business logic can be expressed naturally and
readably in RPG, then that's a perfectly good (and very possibly best)
way to express it, in my opinion.


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].