Uh oh!
There was an error while loading. Please reload this page.
ARROW-8113: [C++] Lighter weight variant<> - #8472
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
We might want to borrow this idiom to disable copy construction for Result<std::unique_ptr<T>>
emkornfield
commented
Oct 18, 2020
drive by comment. just want to make sure we aren't using the same idioms for variant (i.e. they are compatible with C++ std)? |
bkietz
commented
Oct 19, 2020
@emkornfield I'm implementing a subset of |
2bfbb41 to
1875ff2Compare1875ff2 to
27560d0Comparewesm
commented
Oct 20, 2020
@bkietz presumably this yields smaller code size, too? |
bkietz
commented
Oct 20, 2020
Updated description with build times and code sizes for a release build |
pitrou
commented
Oct 22, 2020
This seems to speed up the compute layer a bit.
|
pitrou
commented
Nov 10, 2020
@bkietz Do you plan to update this? |
27560d0 to
40430afComparebkietz
commented
Nov 13, 2020
@pitrou yes but not soon |
40430af to
a03eb14Comparepitrou
commented
Nov 30, 2020
Rebased, I'm writing some micro-benchmarks. |
a03eb14 to
c1b3a75Comparepitrou
commented
Nov 30, 2020
Variant benchmarks:
|
pitrou
commented
Nov 30, 2020
Compute overhead benchmarks:
|
pitrou
commented
Nov 30, 2020
@bkietz Do you know why all Github CI checks are skipped here? |
pitrou
commented
Nov 30, 2020
AppVeyor seems to indicate that MSVC isn't picking up / implementing the copy constructor correctly :-( |
16a69ec to
9a725a6Comparepitrou
commented
Dec 2, 2020
@bkietz You may want to review the changes I've done. I think only docs and comments remain to be done. |
pitrou
commented
Dec 3, 2020
I added some docstrings. I think this is ready now. |
pitrou
commented
Dec 3, 2020
Hmm, I forgot to push some changes... |
9ab2798 to
50cef42Comparebkietz
commented
Dec 7, 2020
@pitrou thanks for picking this up! Looks good to me |
pitrou
commented
Dec 8, 2020
Ok, I'll rebase a last time to make sure this doesn't break anything. |
50cef42 to
168aa54Comparekou
commented
Dec 9, 2020
I don't know why but It seems that this causes g++ 9 crash: https://github.com/ursa-labs/crossbow/runs/1522097163#step:4:1237 We can reproduce this on local: (cd cpp/examples/minimal_build && docker-compose build static && docker-compose run --rm static) |
kou
commented
Dec 10, 2020
https://issues.apache.org/jira/browse/ARROW-10867 may be related. |
util::Variant<>Locally (release build, no ccache):