mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
Revert "Everywhere: Remove DeprecatedFlyString + any remaining references to it"
This reverts commit 3131e6369f
.
Greatly regressed JavaScript benchmark performance.
This commit is contained in:
parent
45905d6f7b
commit
7c32d1e8a5
Notes:
github-actions[bot]
2025-04-01 13:43:40 +00:00
Author: https://github.com/awesomekling
Commit: 7c32d1e8a5
23 changed files with 298 additions and 13 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <AK/AnyOf.h>
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/ByteString.h>
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
#include <AK/Find.h>
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/Function.h>
|
||||
|
@ -35,6 +36,12 @@ StringView::StringView(ByteString const& string)
|
|||
{
|
||||
}
|
||||
|
||||
StringView::StringView(DeprecatedFlyString const& string)
|
||||
: m_characters(string.characters())
|
||||
, m_length(string.length())
|
||||
{
|
||||
}
|
||||
|
||||
StringView::StringView(ByteBuffer const& buffer)
|
||||
: m_characters((char const*)buffer.data())
|
||||
, m_length(buffer.size())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue