feat: integrate flask-orjson for improved JSON serialization performance (#23935)

This commit is contained in:
-LAN- 2025-08-14 19:50:59 +08:00 committed by GitHub
commit e340fccafb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 64 additions and 27 deletions

View file

@ -1153,7 +1153,7 @@ class WorkflowDraftVariable(Base):
value: The Segment object to store as the variable's value.
"""
self.__value = value
self.value = json.dumps(value, cls=variable_utils.SegmentJSONEncoder)
self.value = variable_utils.dumps_with_segments(value)
self.value_type = value.value_type
def get_node_id(self) -> str | None: