‎2012 Sep 25 4:01 AM
Hi,
In constructor method, it directly calls 'SET HANDLER' to register event handler. If I instantiate more than 30, 000 objects associated with this class type, it should take too much time to create objects
For example:
Class A:
Method constructor:
SET HANDLER ****.
ENDMETHOD.
DO 30000 TIMES.
CREATE OBJECT ref.
ENDDO.
As I know, even registration action could trigger to insert handler into handler table. Why does it consume much time here to create objects?
Thanks a lot
Boer
‎2012 Oct 01 12:33 PM
Did you try to manage the memory consumed during the creation ot those numerous objects. Also is it a Z-class or a standard one, if it is a Z-class, could you extract the set handler from instance constructor and use a SET HANDLER FOR ALL INSTANCES, in class-constructor maybe, and manage the sender parameter in the handling methods ?
Regards,
Raymond
‎2012 Oct 01 9:25 AM
Hello Boer,
What is your rationale for this design? What business requirement you want to achieve?
Imho creating 30k objects is definitely time consuming, i am not surprised at this Btw why are you creating 30k objects - is this really a business requirement?
BR,
Suhas
‎2012 Oct 01 10:22 AM
Hello Boer,
Why do you want to create the same Object for 30k times can you plz explain.
Regards
Madhukiran.
‎2012 Oct 01 11:16 AM
Hello Madhukiran,
The "same object" is not created 30k times, 30k objects of the same type( or class, if you may) are created.
BR,
Suhas
‎2012 Oct 01 12:33 PM
Did you try to manage the memory consumed during the creation ot those numerous objects. Also is it a Z-class or a standard one, if it is a Z-class, could you extract the set handler from instance constructor and use a SET HANDLER FOR ALL INSTANCES, in class-constructor maybe, and manage the sender parameter in the handling methods ?
Regards,
Raymond
‎2012 Oct 26 10:33 AM
Appreciate all of you, it's should be a defect from design.
Thanks again.
Boer
‎2012 Oct 26 10:33 AM
Appreciate all of you, it's should be a defect from design.
Thanks again.
Boer