Instantiate objects as needed in SDK #149
Closed
jasonhebert
started this conversation in
Ideas
Replies: 1 comment
-
Yeah, sounds good! 👍 I would just keep the old name of the SellingPartnerSDK facade since it's only internal behavior that really changes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently in the
SellingPartnerSDK
andVendorSDK
classes all child SDK objects are instantiated and stored when an instance of the class is instantiated. There is overhead to this and many objects are instantiated that are never used.I would suggest a change where a cache of SDK objects is stored on the parent SDK object and child SDK objects are only instantiated and stored in this cache when requested for the first time. This would lower the overhead and reduce the unneeded objects to zero.
Beta Was this translation helpful? Give feedback.
All reactions