Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Skip result deserialization for local activities and SideEffect when not replaying (mutableSideEffect already does this)

Đang mở
#3,125 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
54/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading SyncWorkflowContext.mutableSideEffectImpl, which the issue identifies as the existing pattern, then trace how SideEffect and Local Activities serialize and deserialize results. Check the relevant tests for replay and non-replay behavior; done means non-replaying execution returns the original result while replay still deserializes it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

MutableSideEffect already avoids deserializing a result it just serialized as it keeps the original object and only deserializes when the workflow is replaying (SyncWorkflowContext.mutableSideEffectImpl)

Currently SideEffect and Local Activities dont do this - both serialize the result and immediately deserialize it again, even tho the original object is in same process.

Why it matters:
For cases where local activities can return larger results and/or run large num of local activities, the repeated deserialization can cost cpu.

Ask:
when workflow execution is not replaying, return the original object to SideEffect and Local Activity result similarly what MutableSideEffect does.

Ngôn ngữ chính
Java
Star
433
Fork
257
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
22

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của temporalio/sdk-java

Tất cả issue của temporalio/sdk-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.