Mahmoud Al-Qudsi
51275525c1
Speed up extract_prefix_and_unescape_yaml
...
On the completions and history thread, the parent function
HistoryFileContents::decode_item() is responsible for ~60% of the CPU time, and
extract_prefix_and_unescape_yaml() alone comprising 14% (of the total).
This change removes allocations in the event that the history item is either
fully or partially plain yaml with no escapes to begin with, and brings down the
execution time of this function to only 7% of the total execution time.
The bulk of the remaining time is spent in wcs2string(), which is called
unconditionally and is naturally alloc-heavy.
2024-05-15 22:42:19 -05:00
..
2024-05-15 20:05:35 -07:00
2024-05-14 17:31:47 +02:00
2024-05-06 14:59:36 -05:00
2024-02-28 09:41:51 -06:00
2024-05-15 22:42:19 -05:00
2024-05-04 20:49:49 -05:00
2024-01-21 11:49:40 -08:00
2024-01-13 03:58:33 +01:00
2024-05-09 11:20:09 -05:00
2024-05-06 14:59:36 -05:00
2024-05-07 16:59:35 +02:00
2024-05-06 14:59:36 -05:00
2024-05-07 14:03:38 -05:00
2024-05-09 13:33:50 -05:00
2024-05-06 14:59:36 -05:00
2024-04-02 21:33:54 +02:00
2024-04-29 09:20:09 +02:00
2024-04-02 14:35:16 +02:00
2024-05-06 14:59:36 -05:00
2024-05-06 14:59:36 -05:00
2024-05-06 14:59:36 -05:00
2024-05-06 14:59:36 -05:00
2024-03-17 11:20:44 -05:00
2024-05-06 14:59:36 -05:00
2024-05-06 14:59:36 -05:00
2024-05-11 13:20:34 -07:00
2024-03-19 16:41:25 +01:00
2024-05-06 14:59:23 -05:00
2024-05-06 14:59:36 -05:00
2024-04-21 14:25:54 +02:00
2024-04-29 22:00:59 +02:00
2024-03-09 10:09:03 +01:00
2024-05-06 14:59:36 -05:00
2024-04-15 09:47:46 -07:00
2024-05-06 14:59:36 -05:00
2024-05-14 16:14:02 +02:00
2024-05-06 14:59:36 -05:00
2024-01-13 03:58:33 +01:00
2024-04-20 13:34:08 +02:00
2024-01-13 08:52:54 +01:00
2024-04-02 14:35:16 +02:00
2024-02-22 20:10:16 +01:00
2024-05-08 22:34:10 -05:00
2024-05-06 14:59:36 -05:00
2024-01-13 03:58:33 +01:00
2024-01-13 03:58:33 +01:00
2024-05-06 14:59:36 -05:00
2024-05-06 14:59:36 -05:00
2024-05-06 14:59:36 -05:00
2024-04-02 07:34:19 +02:00
2024-05-09 13:58:42 -05:00
2024-05-06 14:59:36 -05:00
2024-05-06 14:59:36 -05:00
2024-05-06 14:59:36 -05:00
2024-01-13 08:52:54 +01:00
2024-05-14 17:31:47 +02:00
2024-05-06 14:59:36 -05:00
2024-01-13 03:58:33 +01:00
2024-01-13 03:58:33 +01:00
2024-05-06 14:59:36 -05:00
2024-01-13 03:58:33 +01:00
2024-05-06 14:59:36 -05:00
2024-05-13 10:44:12 +02:00
2024-05-06 14:59:36 -05:00
2024-05-06 14:59:36 -05:00
2024-05-09 13:58:42 -05:00
2024-05-06 14:59:36 -05:00
2024-03-09 13:49:25 +01:00
2024-05-03 09:37:56 +02:00
2024-01-13 08:52:54 +01:00
2024-05-12 14:55:35 -07:00
2024-05-09 13:58:42 -05:00
2024-01-13 03:58:33 +01:00
2024-01-13 03:58:33 +01:00
2024-05-06 14:59:36 -05:00
2024-05-06 14:59:36 -05:00
2024-01-13 08:52:54 +01:00
2024-05-06 14:59:36 -05:00
2024-04-17 12:41:16 -07:00
2024-05-06 14:59:36 -05:00