Revert "Everywhere: Remove DeprecatedFlyString + any remaining references to it"

This reverts commit 3131e6369f.

Greatly regressed JavaScript benchmark performance.
This commit is contained in:
Andreas Kling 2025-04-01 15:40:13 +02:00
commit 7c32d1e8a5
Notes: github-actions[bot] 2025-04-01 13:43:40 +00:00
23 changed files with 298 additions and 13 deletions

View file

@ -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;