mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[serve] Double Serialization Optimization (#4532)
This commit is contained in:
parent
55a2d39409
commit
db4cf24636
1 changed files with 7 additions and 1 deletions
|
@ -124,8 +124,14 @@ class DeadlineAwareRouter:
|
|||
ACTOR_NOT_REGISTERED_MSG(actor_name))
|
||||
|
||||
result_object_id = get_new_oid()
|
||||
|
||||
# Here, 'data_object_id' is either an ObjectID or an actual object.
|
||||
# When it is an ObjectID, this is an optimization to avoid creating
|
||||
# an extra copy of 'data' in the object store.
|
||||
data_object_id = ray.worker.global_worker._current_task.arguments()[1]
|
||||
|
||||
self.query_queues[actor_name].push(
|
||||
SingleQuery(data, result_object_id, deadline_s))
|
||||
SingleQuery(data_object_id, result_object_id, deadline_s))
|
||||
|
||||
return [result_object_id]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue