You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "zanmato1984 (via GitHub)" <gi...@apache.org> on 2024/07/30 12:38:50 UTC
Re: [PR] GH-41873: [Acero][C++] Reduce asof-join overhead by minimizing copies of the left hand side [arrow]
zanmato1984 commented on code in PR #41874:
URL: https://github.com/apache/arrow/pull/41874#discussion_r1696892226
##########
cpp/src/arrow/acero/asof_join_node.cc:
##########
@@ -912,7 +912,12 @@ class CompositeTableBuilder {
}
}
}
- return CompositeTable{schema, inputs.size(), dst_to_src, pool};
+ // NB: The left hand side of the join (index 0) is the reference table of the
+ // asof-join. The output is comprised of continuous slices of the this table, so
+ // we can just take zero-copy slices of it. This is much faster than how other
+ // tables are treated, wherein we need to copy
+ return CompositeTable{schema, inputs.size(), dst_to_src, pool,
+ /*contiguous_sources=*/{0}};
Review Comment:
```suggestion
/*contiguous_srcs_=*/{0}};
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org