mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:37:46 +00:00
Revert "AK: Fix accidentally-quadratic behavior in StringBuilder"
This reverts commit 2d011961c9
.
This commit is contained in:
parent
05d49cc0cb
commit
dfd988707c
2 changed files with 4 additions and 6 deletions
|
@ -187,8 +187,6 @@ public:
|
|||
operator Bytes() { return bytes(); }
|
||||
operator ReadonlyBytes() const { return bytes(); }
|
||||
|
||||
ALWAYS_INLINE size_t capacity() const { return is_inline() ? inline_capacity : m_outline_capacity; }
|
||||
|
||||
private:
|
||||
ByteBuffer(size_t size)
|
||||
{
|
||||
|
@ -238,6 +236,7 @@ private:
|
|||
}
|
||||
|
||||
ALWAYS_INLINE bool is_inline() const { return m_size <= inline_capacity; }
|
||||
ALWAYS_INLINE size_t capacity() const { return is_inline() ? inline_capacity : m_outline_capacity; }
|
||||
|
||||
size_t m_size { 0 };
|
||||
union {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue