Skip to content

Commit c72106e

Browse files
authored
DPL Analysis: declare projectors static so they are reused (#4375)
1 parent 7f69a2f commit c72106e

File tree

1 file changed

+2
-2
lines changed
  • Framework/Core/include/Framework

1 file changed

+2
-2
lines changed

Framework/Core/include/Framework/ASoA.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,7 @@ auto spawner(framework::pack<C...> columns, arrow::Table* atable)
17621762
arrow::ArrayVector v;
17631763
std::array<arrow::ArrayVector, sizeof...(C)> chunks;
17641764

1765-
auto projectors = framework::expressions::createProjectors(columns, atable->schema());
1765+
static auto projectors = framework::expressions::createProjectors(columns, atable->schema());
17661766
while (true) {
17671767
auto s = reader.ReadNext(&batch);
17681768
if (!s.ok()) {
@@ -1783,7 +1783,7 @@ auto spawner(framework::pack<C...> columns, arrow::Table* atable)
17831783
for (auto i = 0u; i < sizeof...(C); ++i) {
17841784
arrays.push_back(std::make_shared<arrow::ChunkedArray>(chunks[i]));
17851785
}
1786-
auto new_schema = o2::soa::createSchemaFromColumns(columns);
1786+
static auto new_schema = o2::soa::createSchemaFromColumns(columns);
17871787
return arrow::Table::Make(new_schema, arrays);
17881788
}
17891789

0 commit comments

Comments
 (0)