2 Comments
User's avatar
Vlad's avatar

I feel like it's a bit of an artificial scenario. We would normally do:

```

DataHolder dataHolder = copy(src);

```

which should be as fast as (if not faster than):

```

DataHolder dataHolder;

copy(dataHolder, src);

```

Expand full comment
Taras Tsugrii's avatar

you'd think so, but that's what I've actually started with and it performed equally poorly - https://quick-bench.com/q/k0SdnqC05aE3xBrPywmfHLK0vVA ;)

Expand full comment