blob: 7f7d67cf41bae8cec5bc247c5008fb6511191db8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "fast_addr_map.h"
#include <vespa/vespalib/stllike/hashtable.hpp>
namespace vespalib::eval {
FastAddrMap::FastAddrMap(size_t num_mapped_dims, const StringIdVector &labels_in, size_t expected_subspaces)
: _labels(num_mapped_dims, labels_in),
_map(expected_subspaces * 2, Hash(), Equal(_labels))
{}
FastAddrMap::~FastAddrMap() = default;
}
|