05-08-2007 7:48 PM
Hi,
I have a question on Memory allocation .
There is a class which is instantiated number of times and one method in that class is called to update one internal table.
My question is does ABAP processor does a memory allocation everytime it calls the class?
I am asking this question becuase we have a performance issue.
Points will be awarded for helpful answers.
Thanks.
05-09-2007 7:09 AM
Hi ,
Memory allocation will not be done when we call the class. When ever we create an object for any class then only mem'y allocation will be done. So Definitely your performance problem will not be because of calling a class multiple times.
Reward useful Point.
Regards,
Mohan
05-09-2007 7:09 AM
Hi ,
Memory allocation will not be done when we call the class. When ever we create an object for any class then only mem'y allocation will be done. So Definitely your performance problem will not be because of calling a class multiple times.
Reward useful Point.
Regards,
Mohan
05-09-2007 7:16 AM
Hi,
Every time you run the Class the Instant is generated, so after you run the Program with that class Memory will be allocated to that instant, when you run the program or class second time the memory area will be same, so this will sit in the same area, so there no meaning of occupying more memory when you run tthe program second time
Regards
Sudheer