mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:07:36 +00:00
LibJS: Add inline capacity to BlockAllocator's blocks Vector
There's no need to dynamically allocate a constant sized vector :^)
This commit is contained in:
parent
ab17ba0ab5
commit
ffaf27e4b6
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ public:
|
||||||
private:
|
private:
|
||||||
static constexpr size_t max_cached_blocks = 64;
|
static constexpr size_t max_cached_blocks = 64;
|
||||||
|
|
||||||
Vector<void*> m_blocks;
|
Vector<void*, max_cached_blocks> m_blocks;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue