aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/vespa/eval/eval/fast_addr_map.cpp
blob: 08c3cdaf87071929ab94a86cd11487c6d2e17f44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Yahoo. 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;

}