Use 2inN modulator instead of prime number modulator to avoid expensive div
@@ -21,7 +21,8 @@ namespace vespalib::tensor {
class SparseTensor : public Tensor
{
public:
- using Cells = vespalib::hash_map<SparseTensorAddressRef, double>;
+ using Cells = hash_map<SparseTensorAddressRef, double, hash<SparseTensorAddressRef>,
+ std::equal_to<SparseTensorAddressRef>, hashtable_base::and_modulator>;
static constexpr size_t STASH_CHUNK_SIZE = 16384u;
