Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Memory allocation

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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