mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
LibJS: Use IntrusiveList for keeping track of HandleImpls
This allows us to remove a HashTable from heap and cuts down on some of the malloc traffic when creating handles.
This commit is contained in:
parent
8ea029405f
commit
746b310061
3 changed files with 15 additions and 7 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/HashTable.h>
|
||||
#include <AK/IntrusiveList.h>
|
||||
#include <AK/Noncopyable.h>
|
||||
#include <AK/NonnullOwnPtr.h>
|
||||
#include <AK/Types.h>
|
||||
|
@ -105,7 +106,8 @@ private:
|
|||
VM& m_vm;
|
||||
|
||||
Vector<NonnullOwnPtr<CellAllocator>> m_allocators;
|
||||
HashTable<HandleImpl*> m_handles;
|
||||
|
||||
HandleImpl::List m_handles;
|
||||
|
||||
HashTable<MarkedValueList*> m_marked_value_lists;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue