feat: integrate flask-orjson for improved JSON serialization performance (#23935)
This commit is contained in:
parent
4a2e6af9b5
commit
e340fccafb
8 changed files with 64 additions and 27 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue