mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:58:12 +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:
parent
9e225d2d05
commit
a5e28f2897
17 changed files with 95 additions and 94 deletions
|
@ -19,10 +19,11 @@ struct TupleElement {
|
|||
bool operator==(TupleElement const&) const = default;
|
||||
};
|
||||
|
||||
class TupleDescriptor : public Vector<TupleElement> {
|
||||
class TupleDescriptor
|
||||
: public Vector<TupleElement>
|
||||
, public RefCounted<TupleDescriptor> {
|
||||
public:
|
||||
TupleDescriptor() = default;
|
||||
TupleDescriptor(TupleDescriptor const&) = default;
|
||||
~TupleDescriptor() = default;
|
||||
|
||||
[[nodiscard]] size_t data_length() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue