2010 Feb 02 1:17 PM
HI
I have to free say around 20 memory IDs.
Is it wise use
FREE MEMORY ID 1.
FREE MEMORY ID 2.
..
..
FREE MEMORY ID N.
or
FREE MEMORY ID: 1, 2, .... N.
Please dont mention about readability.
Please say about performance only. Will the later increase Performance or former ?
thanks,
Padma
2010 Feb 02 1:33 PM
Iam closing this thread here and opening it again in GENERAL section as i need quick replies.
thanks.
2010 Feb 02 1:37 PM
Hi,
If you're in such a rush why don't you try transaction SM30 (push button Tips & Tricks) to benchmark the two approaches to find how negligible the difference is yourself?
Regards,
Nick
2010 Feb 02 1:47 PM
This is the correct forum and duplicate posting is not allowed.
Cheers,
Julius
2010 Feb 02 2:01 PM
I checked in SE30. (Hope you said, SE30 only as SM30 is Tab Maint.)
But not able to find out in Tips and Tricks.
any answers please ?
thanks
2010 Feb 02 2:07 PM
You can measure a run time of your program in SE30. So make program using first variant, run it from SE30 and see results. Than make the same for second variant and you will see difference. It is the same as using GET RUNTIME FIELD statement to measure a run time. But I think you do not have to worry about performance in case of FREE MEMORY, it is relative "cheap" statement. And both variants should take approximately the same time, because they are doing exactly the same, just syntax is different. The second one is just a way how to write the first one into one line. But it will also do 20 times the statement FREE MEMORY.
Adrian
2010 Feb 02 2:14 PM
Hi,
Yes, I meant SE30.
When I tested this in SE30 (on your behalf) I found the difference between the two structures when freeing 20 memory IDs was negligible. But I still don't understand why you were not able to use SE30 yourself.
Regards,
Nick
2010 Feb 02 1:57 PM
Hi,
the performance should be the same in both cases. But you can test it using transaction SE30 or using statement GET RUNTIME FIELD to get some exact results.
Regards,
Adrian
2010 Feb 02 4:38 PM
2010 Feb 02 4:56 PM
Do you mind telling ust which turned out to be faster and how much was saved?
Rob