|
Richard B Baird wrote: > ... > > if you have a rather large string that you might want to change locally, > does it matter whether you pass by value and change in-line, or > const/reference and move it to a locally defined variable for manipulation > - 6 of one, .5doz of another. you are still moving the data. > ... Passing large parameters by value isn't something that the iSeries is optimized for. (I think this probably applies to any system.) If you have procedures dealing with strings, defining the parameters as CONST VARYING will probably get you the best performance. If your procedure has to make a local copy, it will only have to copy the current length.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.