-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Milestone
Description
While benchmarking vs. MobX, I've noticed tink_state taxes the GC quite a bit more. Haven't profiled it yet, but two things seem to stand out as relatively obvious:
Invalidatoris the basis of all things and it subscribes everyInvalidatableonly once. The usage of aCallbackListis therefore not necessary, and the allocation of theCallbackLinkcan be avoided in favor of a method to unsubscribe anInvalidatable(by identity) again.- The data contained in
SubscribtionTocan be inlined intoAutoObservable.
Metadata
Metadata
Assignees
Labels
No labels