Performance fix (#2110)

This commit is contained in:
eric-jj
2018-05-20 18:07:55 -07:00
committed by Robert Nishihara
parent f795173b51
commit eb078766d8
7 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -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
View File
@@ -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.
///