Increase bound for unique_ptr-based HashTable node usage to improve performance.

This commit is contained in:
levlam 2022-05-02 20:46:20 +03:00
parent d6569d43fd
commit 6b838b706b
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ struct MapNode {
};
template <class KeyT, class ValueT>
struct MapNode<KeyT, ValueT, typename std::enable_if_t<(sizeof(KeyT) + sizeof(ValueT) > 6 * sizeof(void *))>> {
struct MapNode<KeyT, ValueT, typename std::enable_if_t<(sizeof(KeyT) + sizeof(ValueT) > 28 * sizeof(void *))>> {
struct Impl {
using first_type = KeyT;
using second_type = ValueT;

View File

@ -64,7 +64,7 @@ struct SetNode {
};
template <class KeyT>
struct SetNode<KeyT, typename std::enable_if_t<(sizeof(KeyT) > 6 * sizeof(void *))>> {
struct SetNode<KeyT, typename std::enable_if_t<(sizeof(KeyT) > 28 * sizeof(void *))>> {
struct Impl {
using second_type = KeyT;