mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibSQL: Make TupleDescriptor a shared pointer instead of a stack object
Tuple descriptors are basically the same for for example all rows in a table. Makes sense to share them instead of copying them for every single row.
This commit is contained in:
committed by
Andreas Kling
parent
9e225d2d05
commit
a5e28f2897
@@ -10,7 +10,7 @@
|
||||
|
||||
namespace SQL {
|
||||
|
||||
Index::Index(Heap& heap, TupleDescriptor const& descriptor, bool unique, u32 pointer)
|
||||
Index::Index(Heap& heap, NonnullRefPtr<TupleDescriptor> const& descriptor, bool unique, u32 pointer)
|
||||
: m_heap(heap)
|
||||
, m_descriptor(descriptor)
|
||||
, m_unique(unique)
|
||||
@@ -18,7 +18,7 @@ Index::Index(Heap& heap, TupleDescriptor const& descriptor, bool unique, u32 poi
|
||||
{
|
||||
}
|
||||
|
||||
Index::Index(Heap& heap, TupleDescriptor const& descriptor, u32 pointer)
|
||||
Index::Index(Heap& heap, NonnullRefPtr<TupleDescriptor> const& descriptor, u32 pointer)
|
||||
: m_heap(heap)
|
||||
, m_descriptor(descriptor)
|
||||
, m_pointer(pointer)
|
||||
|
||||
Reference in New Issue
Block a user