‎2009 Mar 13 5:26 PM
A colleague has suggested that modularising code into Forms, rather than using inline code will cause a performance hit because of the required PERFORM statements.
Assuming this is not being done in a ridiculously tight loop is there any significant performance hit with modularisation?
On the same subject are there any reference books which explain in microscopic detail the "runtime" system of SAP, e.g. explaining (probably implicitly) the difference in performance between the two techniques.
(I come from a traditional technical background so I know all about stack based languages, interpreters versus compilers, demand paging, page tables etc.)
‎2009 Mar 14 3:54 PM
You should modularisation as always in programming, but in ABAP you should not write
too small units, there is no compiler which creates incline code.
Overhead of all modularization units is rather small.
FORMs are useful fpr small reports, but outdated ABAP OO is the way to code right now.
Siegfried
‎2009 Mar 13 7:21 PM
‎2009 Mar 14 3:54 PM
You should modularisation as always in programming, but in ABAP you should not write
too small units, there is no compiler which creates incline code.
Overhead of all modularization units is rather small.
FORMs are useful fpr small reports, but outdated ABAP OO is the way to code right now.
Siegfried
‎2009 Mar 16 9:12 PM
Hi Jerry,
Please check the report RSHOWTIM (SE38), execute and navigate for each option of ABAP Objects Performance Example.
Each option consist of comparations, sometimes the performance difference is irrelevant, in others cases must represents a huge performance lack.
Since you are new in ABAP context, please evaluate this options.
About FORM x INLINE: It's a good practice to separate your code into form's (or function module) to create a clean code, easy for maintenance, documentation and reusability. It not represent benefits for performance.
Regards,
Fernando Da Ró