Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Performance difference between MOVE and = assignment in ABAP

Tags:

abap

Is there any kind of performance gain between 'MOVE TO' vs x = y? I have a really old program I am optimizing and would like to know if it's worth it to pull out all the MOVE TO. Any other general tips on ABAP optimization would be great as well.

like image 544
CodeMonkey Avatar asked Dec 21 '12 16:12

CodeMonkey


2 Answers

No, that is just the same operation expressed in two different ways. Nothing to gain there. If you're out for generic hints, there's a good book available that I'd recommend studying in detail. If you have to optimize a specific program, use the tracing tools (transaction SAT in sufficiently current releases).

like image 200
vwegert Avatar answered Sep 23 '22 03:09

vwegert


The two statements are equivalent:

" To assign the value of a data object source to a variable destination, use the following statement:

MOVE source TO destination.

or the equivalent statement

destination = source.

"

like image 33
Jordão Avatar answered Sep 23 '22 03:09

Jordão