Skip to content

Commit 3e50466

Browse files
committed
Micro optimizations
1 parent 9f87d92 commit 3e50466

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/queryosity/column.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ template <typename T> class variable {
9494
public:
9595
variable() = default;
9696
template <typename U> variable(view<U> const &val);
97-
virtual ~variable() = default;
97+
~variable() = default;
9898

9999
variable(variable &&) = default;
100100
variable &operator=(variable &&) = default;
@@ -117,7 +117,7 @@ template <typename Val> class observable {
117117
* @brief Constructor out of a variable.
118118
*/
119119
observable(variable<Val> const &obs);
120-
virtual ~observable() = default;
120+
~observable() = default;
121121

122122
/**
123123
* @brief Compute and retrieve the value of the column.

include/queryosity/lazy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,14 @@ void queryosity::lazy<Action>::merge_results() {
429429
using result_type = decltype(model->result());
430430
const auto nslots = this->size();
431431
if (nslots == 1) {
432-
this->m_result = model->result();
432+
this->m_result = std::move(model->result());
433433
} else {
434434
std::vector<result_type> results;
435435
results.reserve(nslots);
436436
for (size_t islot = 0; islot < nslots; ++islot) {
437437
results.push_back(std::move(this->get_slot(islot)->result()));
438438
}
439-
this->m_result = model->merge(results);
439+
this->m_result = std::move(model->merge(results));
440440
}
441441
this->m_merged = true;
442442
}

0 commit comments

Comments
 (0)