From ffaf27e4b687bc2f5b3167e1676f5cb1922e5253 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Fri, 28 May 2021 00:35:10 +0300 Subject: [PATCH] LibJS: Add inline capacity to BlockAllocator's blocks Vector There's no need to dynamically allocate a constant sized vector :^) --- Userland/Libraries/LibJS/Heap/BlockAllocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Heap/BlockAllocator.h b/Userland/Libraries/LibJS/Heap/BlockAllocator.h index 4af186c4d7..70c873c10f 100644 --- a/Userland/Libraries/LibJS/Heap/BlockAllocator.h +++ b/Userland/Libraries/LibJS/Heap/BlockAllocator.h @@ -22,7 +22,7 @@ public: private: static constexpr size_t max_cached_blocks = 64; - Vector m_blocks; + Vector m_blocks; }; }