Skip to content

Commit

Permalink
feat: change window size default for multiexponentiation algorithm (P…
Browse files Browse the repository at this point in the history
…ROOF-893) (#160)

tweak window default
  • Loading branch information
rnburn authored Jul 26, 2024
1 parent 41aa890 commit bc8c5be
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ template <class U, bascrv::element T>
}
std::unique_ptr<partition_table_accessor<U>>
make_in_memory_partition_table_accessor_impl(basct::cspan<T> generators, basm::alloc_t alloc,
unsigned window_width = 13) noexcept {
unsigned window_width = 15) noexcept {
auto n = generators.size();
auto partition_table_size = 1u << window_width;
std::vector<T> generators_data;
Expand All @@ -64,15 +64,15 @@ template <class U, class T>
std::unique_ptr<partition_table_accessor<U>>
make_in_memory_partition_table_accessor(basct::cspan<T> generators,
basm::alloc_t alloc = memr::get_pinned_resource(),
unsigned window_width = 13) noexcept {
unsigned window_width = 15) noexcept {
return make_in_memory_partition_table_accessor_impl<U, T>(generators, alloc, window_width);
}

template <class T>
std::unique_ptr<partition_table_accessor<T>>
make_in_memory_partition_table_accessor(basct::cspan<T> generators,
basm::alloc_t alloc = memr::get_pinned_resource(),
unsigned window_width = 13) noexcept {
unsigned window_width = 15) noexcept {
return make_in_memory_partition_table_accessor_impl<T, T>(generators, alloc, window_width);
}
} // namespace sxt::mtxpp2

0 comments on commit bc8c5be

Please sign in to comment.