sdk-core
sdk-core copied to clipboard
[Feature Request] More efficient large payload handling
Right now it's possible (in particular for local activities, which is why I'm writing this) to clone large payloads inside events during history lookahead (and possibly also application).
Ideally that would be avoided as it could cause substantial overhead during replay. Create a bench test to verify and then improve.
Possible fixes:
Rc/ArcPayload(s) types - also would require a customHistoryEventversion (maybeprostannotation?)- Never clone
HistoryEvents, always use refs
This might require https://github.com/temporalio/sdk-core/issues/180 to be done, as it probably allows using Rc more freely.
At least partially fixed in https://github.com/temporalio/sdk-core/pull/279