aboutsummaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-12-07 14:48:08 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-12-07 14:48:08 +0000
commit1161a2c40b8de785129b151192b35b54b9988b6e (patch)
tree62bd7b9a3aad35af68c70e35eeb5816e0166507b /eval
parente2818c4593f6964e57bdbd332ebe0481d39bb0d8 (diff)
- Inline frequently called simple methods.
- Deinline calc_with_limits for HammingDistance and make it final to also improve inlining.
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/eval/typed_cells.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval/src/vespa/eval/eval/typed_cells.h b/eval/src/vespa/eval/eval/typed_cells.h
index 872488527c2..b8640698d13 100644
--- a/eval/src/vespa/eval/eval/typed_cells.h
+++ b/eval/src/vespa/eval/eval/typed_cells.h
@@ -20,8 +20,8 @@ struct TypedCells {
explicit TypedCells(ConstArrayRef<BFloat16> cells) : data(cells.begin()), type(CellType::BFLOAT16), size(cells.size()) {}
explicit TypedCells(ConstArrayRef<Int8Float> cells) : data(cells.begin()), type(CellType::INT8), size(cells.size()) {}
- TypedCells() : data(nullptr), type(CellType::DOUBLE), size(0) {}
- TypedCells(const void *dp, CellType ct, size_t sz) : data(dp), type(ct), size(sz) {}
+ TypedCells() noexcept : data(nullptr), type(CellType::DOUBLE), size(0) {}
+ TypedCells(const void *dp, CellType ct, size_t sz) noexcept : data(dp), type(ct), size(sz) {}
template <typename T> bool check_type() const { return vespalib::eval::check_cell_type<T>(type); }