right now I am using do by generate a global singleton scope and get the service on demand. but there is a call to get call
stack everytime I try to get the instnace
frame, ok := stacktrace.NewFrameFromCaller(), in fact this methos is not exported just for internal usagae. It will decrease the system performance. is there way to optimize the design?
above code is from https://github.com/samber/do/blob/v2-%F0%9F%9A%80/service_eager.go,
right now I am using do by generate a global singleton scope and get the service on demand. but there is a call to get call stack everytime I try to get the instnace frame, ok := stacktrace.NewFrameFromCaller(), in fact this methos is not exported just for internal usagae. It will decrease the system performance. is there way to optimize the design?