mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +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
|
@ -26,7 +26,7 @@ public:
|
|||
static ErrorOr<FlyString> from_utf8(StringView);
|
||||
static FlyString from_utf8_without_validation(ReadonlyBytes);
|
||||
template<typename T>
|
||||
requires(IsOneOf<RemoveCVReference<T>, ByteString, FlyString, String>)
|
||||
requires(IsOneOf<RemoveCVReference<T>, ByteString, DeprecatedFlyString, FlyString, String>)
|
||||
static ErrorOr<String> from_utf8(T&&) = delete;
|
||||
|
||||
FlyString(String const&);
|
||||
|
@ -55,6 +55,9 @@ public:
|
|||
// This is primarily interesting to unit tests.
|
||||
[[nodiscard]] static size_t number_of_fly_strings();
|
||||
|
||||
// FIXME: Remove these once all code has been ported to FlyString
|
||||
[[nodiscard]] DeprecatedFlyString to_deprecated_fly_string() const;
|
||||
static ErrorOr<FlyString> from_deprecated_fly_string(DeprecatedFlyString const&);
|
||||
template<typename T>
|
||||
requires(IsSame<RemoveCVReference<T>, StringView>)
|
||||
static ErrorOr<String> from_deprecated_fly_string(T&&) = delete;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue