1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +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:
Idan Horowitz 2021-05-28 00:35:10 +03:00 committed by Linus Groh
parent ab17ba0ab5
commit ffaf27e4b6

View file

@ -22,7 +22,7 @@ public:
private:
static constexpr size_t max_cached_blocks = 64;
Vector<void*> m_blocks;
Vector<void*, max_cached_blocks> m_blocks;
};
}