Increase bound for unique_ptr-based HashTable node usage to improve performance.
This commit is contained in:
parent
d6569d43fd
commit
6b838b706b
@ -92,7 +92,7 @@ struct MapNode {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <class KeyT, class ValueT>
|
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 {
|
struct Impl {
|
||||||
using first_type = KeyT;
|
using first_type = KeyT;
|
||||||
using second_type = ValueT;
|
using second_type = ValueT;
|
||||||
|
@ -64,7 +64,7 @@ struct SetNode {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <class KeyT>
|
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 {
|
struct Impl {
|
||||||
using second_type = KeyT;
|
using second_type = KeyT;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user