mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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
Notes:
sideshowbarker
2024-07-18 17:17:25 +09:00
Author: https://github.com/IdanHo
Commit: ffaf27e4b6
Pull-request: https://github.com/SerenityOS/serenity/pull/7511
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue