mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
9e27f4f146
commit
0338a8c71c
@ -20,8 +20,6 @@ struct Dict{
|
|||||||
|
|
||||||
static constexpr int __Capacity = 8;
|
static constexpr int __Capacity = 8;
|
||||||
static constexpr float __LoadFactor = 0.67f;
|
static constexpr float __LoadFactor = 0.67f;
|
||||||
// by ensuring this, we can use pool64 to alloc ItemNode and pool128 to alloc Item
|
|
||||||
static_assert(sizeof(Item) == 2*sizeof(ItemNode));
|
|
||||||
static_assert(sizeof(Item) * __Capacity <= 128);
|
static_assert(sizeof(Item) * __Capacity <= 128);
|
||||||
static_assert(sizeof(ItemNode) * __Capacity <= 64);
|
static_assert(sizeof(ItemNode) * __Capacity <= 64);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user