apple / apple/foundationdb

Avoid unnecessary copies from movable futures

Open
#2,928 1 comment 0 reactions 1 assignee Claimed by @tclinken View on GitHub
Dominant language
C++
Stars
16.7k
Forks
1.6k
Avg merge
1d 20h
Merged PRs (30d)
126

Description

The following code shouldn't require copy of the vector:

```
Future> produceVector(int size) {
return vector(size, 0);
}

ACTOR Future driver() {
vector v = wait(produceVector(1000));
return Void();
}
```
However, the above driver does copy the vector.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.