Files
ladybird/AK
Andreas Kling 873da38d0e AK: Remove String-from-StringView optimization
We had an unusual optimization in AK::StringView where constructing
a StringView from a String would cause it to remember the internal
StringImpl pointer of the String.

This was used to make constructing a String from a StringView fast
and copy-free.

I tried removing this optimization and indeed we started seeing a
ton of allocation traffic. However, all of it was due to a silly
pattern where functions would take a StringView and then go on
to create a String from it.

I've gone through most of the code and updated those functions to
simply take a String directly instead, which now makes this
optimization unnecessary, and indeed a source of bloat instead.

So, let's get rid of it and make StringView a little smaller. :^)
2021-04-17 01:27:31 +02:00
..
2021-02-17 15:22:21 +01:00
2021-02-07 11:35:08 +01:00
2021-01-15 09:44:21 +01:00
2021-03-23 08:22:15 +01:00
2021-03-27 10:20:55 +01:00
2021-04-16 20:03:35 +02:00
2021-03-13 20:07:25 +01:00
2020-10-29 11:52:31 +01:00
2021-02-08 18:03:57 +01:00
2021-04-14 13:30:10 +02:00
2021-04-14 13:30:10 +02:00
2021-02-23 20:56:54 +01:00
2021-02-23 20:56:54 +01:00
2020-11-22 10:54:33 +01:00
2021-04-16 19:19:31 +02:00
2021-02-23 20:56:54 +01:00
2021-03-25 10:59:34 +01:00
2021-03-25 10:59:34 +01:00
2021-02-23 20:56:54 +01:00
2021-02-23 20:56:54 +01:00