on 05-11-2009 4:07 PM
Hi,
which statement is faster in checking whether an internal table is empty:
IF lt_table IS INITIAL.
or
IF LINES( lt_table ) > 0.
Or is there no difference at all?
--Florian
Hi,
tested "IS INITIAL" to be a lot faster than "LINES( ... ) = 0", factor 5 to 6.
Best regards, Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Why don't you just test it ?
Put the instruction to test in a 10 000 iteration loop and measure the response time.
You will know the answer for sure !
My guess is "IS INITIAL" will be faster...
Regards,
Olivier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.