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-04-16 17:42:42 +02:00
2021-02-17 15:22:21 +01:00
2021-02-07 11:35:08 +01:00
2021-03-21 09:35:23 +01:00
2021-02-23 21:11:53 +01:00
2021-04-10 21:01:31 +02:00
2021-01-15 09:44:21 +01:00
2021-03-04 11:01:48 +01:00
2021-02-08 18:03:57 +01:00
2021-03-13 23:50:07 +01:00
2021-02-08 18:03:57 +01:00
2021-03-23 08:22:15 +01:00
2021-04-09 17:08:49 +02:00
2021-04-09 17:08:49 +02:00
2021-03-16 14:56:50 +01:00
2021-04-10 21:01:31 +02:00
2021-02-21 16:34:51 +01:00
2021-03-15 18:01:11 +01:00
2021-04-11 12:50:33 +02:00
2021-04-10 21:01:31 +02:00
2021-02-23 20:56:54 +01:00
2021-02-23 20:56:54 +01:00
2021-02-23 20:56:54 +01:00
2021-02-28 18:19:37 +01:00
2021-03-27 10:20:55 +01:00
2021-04-10 21:01:31 +02:00
2021-04-02 10:47:40 +02:00
2021-02-26 16:59:56 +01:00
2021-04-11 12:50:33 +02:00
2021-01-12 09:11:45 +01:00
2021-04-10 21:01:31 +02:00
2021-02-08 18:03:57 +01:00
2021-01-11 19:45:05 +01:00
2021-02-26 16:59:56 +01:00
2021-01-12 09:11:45 +01:00
2021-04-16 17:42:42 +02:00
2021-04-16 20:03:35 +02:00
2021-03-13 20:07:25 +01:00
2021-04-10 21:01:31 +02:00
2021-02-23 20:56:54 +01:00
2020-10-29 11:52:31 +01:00
2021-02-08 18:03:57 +01:00
2021-04-11 12:50:33 +02:00
2021-04-11 12:50:33 +02:00
2021-04-14 13:30:10 +02:00
2021-04-14 13:30:10 +02:00
2021-03-12 17:29:37 +01:00
2021-02-23 20:56:54 +01:00
2021-04-16 22:26:52 +02:00
2021-04-12 18:03:44 +02:00
2021-03-12 17:29:37 +01:00
2021-04-10 21:01:31 +02:00
2021-03-26 22:58:31 +01:00
2021-02-23 20:56:54 +01:00
2021-03-08 11:50:36 +01:00
2021-02-23 20:56:54 +01:00
2021-02-26 16:59:56 +01:00
2020-09-08 14:01:21 +02:00
2021-02-23 20:56:54 +01:00
2021-02-23 20:56:54 +01:00
2021-02-23 20:56:54 +01:00
2021-03-17 23:22:42 +01:00
2020-11-05 09:59:30 +01:00
2021-03-12 17:29:37 +01:00
2021-04-17 01:27:30 +02:00
2021-04-17 01:27:30 +02:00
2021-02-26 16:59:56 +01:00
2021-03-12 17:29:37 +01:00
2021-01-12 23:34:01 +01: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-03-12 17:29:37 +01:00
2021-02-20 18:34:32 +01:00
2021-02-20 18:34:32 +01:00
2021-03-21 09:35:23 +01:00
2021-02-20 18:34:32 +01:00
2021-03-25 10:59:11 +01:00
2020-09-29 16:14:58 +02:00
2021-04-16 19:19:31 +02:00
2021-03-12 17:29:37 +01:00
2021-03-12 17:29:37 +01:00
2021-03-12 17:29:37 +01:00
2021-03-21 09:35:23 +01:00
2021-03-21 09:35:23 +01:00
2021-02-23 20:56:54 +01:00
2021-02-01 09:52:36 +01:00
2020-12-21 00:09:48 +01:00
2021-04-12 18:03:44 +02:00
2021-02-23 20:56:54 +01:00
2021-04-10 21:01:31 +02:00
2021-04-01 21:03:57 +02:00
2020-09-25 21:18:17 +02:00
2021-01-27 21:10:57 +01:00
2020-12-08 09:39:43 +01:00
2021-03-21 09:35:23 +01:00
2021-02-23 20:56:54 +01:00
2021-02-08 18:03:57 +01:00
2021-02-23 20:56:54 +01:00
2021-04-10 21:01:31 +02:00
2021-03-03 11:09:44 +01:00
2020-11-08 16:51:54 +01:00
2021-04-10 21:01:31 +02:00
2021-04-16 22:26:52 +02:00
2021-04-10 21:01:31 +02:00
2021-04-17 01:27:31 +02:00
2021-04-10 21:01:31 +02:00
2021-02-23 20:56:54 +01:00
2021-04-11 12:50:33 +02:00
2021-02-23 20:56:54 +01:00
2021-02-23 20:56:54 +01:00
2021-04-17 01:27:31 +02:00
2021-02-21 19:47:47 +01:00
2021-04-17 01:27:31 +02:00
2021-04-17 01:27:31 +02:00
2021-04-16 19:01:54 +02:00
2021-03-13 10:17:28 +01:00
2021-03-13 10:17:28 +01:00
2021-01-11 19:45:05 +01:00
2021-04-11 12:50:33 +02:00
2021-04-10 21:01:31 +02:00
2021-03-17 16:30:15 +01:00
2020-12-31 16:16:07 +01:00
2021-04-10 21:01:31 +02:00
2021-03-07 11:00:36 +01:00
2021-03-12 17:29:37 +01:00
2021-01-31 19:05:55 +01:00
2021-01-31 19:05:55 +01:00
2021-04-10 21:01:31 +02: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
2021-01-12 09:11:45 +01:00
2021-02-23 20:56:54 +01:00
2021-04-10 21:01:31 +02:00
2021-04-11 12:50:33 +02:00