mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Performance fix (#2110)
This commit is contained in:
committed by
Robert Nishihara
parent
f795173b51
commit
eb078766d8
+1
-1
@@ -426,7 +426,7 @@ TaskExecutionSpec::TaskExecutionSpec(TaskExecutionSpec *other)
|
||||
spec_ = std::unique_ptr<TaskSpec[]>(spec_copy);
|
||||
}
|
||||
|
||||
std::vector<ObjectID> TaskExecutionSpec::ExecutionDependencies() const {
|
||||
const std::vector<ObjectID> &TaskExecutionSpec::ExecutionDependencies() const {
|
||||
return execution_dependencies_;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ class TaskExecutionSpec {
|
||||
///
|
||||
/// @return A vector of object IDs representing this task's execution
|
||||
/// dependencies.
|
||||
std::vector<ObjectID> ExecutionDependencies() const;
|
||||
const std::vector<ObjectID> &ExecutionDependencies() const;
|
||||
|
||||
/// Set the task's execution dependencies.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user