Krzysztof Pszeniczny
991154d0fb
[LTO] Use .at instead of .lookup to avoid copies. (NFC) ( #117888 )
...
`DenseMap::lookup` returns by value (because it default-creates the
returned value if the key isn't present in the map), which means that we
do a lot of copying here. Since we assert that something is present in
the returned value two lines below this call, it's safe to use `.at`
here instead.
Copying and then destroying dense maps here is responsible for 60% of
the time spent in LTO indexing in a large internal build.
2024-11-27 18:41:29 +01:00
..
2024-11-27 15:53:21 +01:00
2024-11-03 13:48:55 -08:00
2024-11-05 13:44:34 +00:00
2024-11-03 13:48:55 -08:00
2024-11-04 15:33:19 +00:00
2024-05-04 12:33:12 -07:00
2024-09-26 10:49:29 +01:00
2024-09-06 16:38:17 -07:00
2024-06-28 08:36:49 +02:00
2024-11-03 13:48:55 -08:00
2024-10-17 10:32:55 -05:00
2024-11-03 13:48:55 -08:00
2024-11-03 13:48:55 -08:00
2024-10-16 07:21:10 -07:00
2024-11-03 13:48:55 -08:00
2023-09-07 18:39:19 -04:00
2024-11-20 19:15:23 -08:00
2024-11-27 18:41:29 +01:00
2024-11-06 13:25:15 +00:00
2024-10-16 07:21:10 -07:00
2024-11-18 10:49:50 +01:00
2024-11-03 13:48:55 -08:00
2024-11-03 13:48:55 -08:00
2024-11-03 13:48:55 -08:00
2024-11-07 10:55:05 -08:00
2024-11-03 13:48:55 -08:00
2024-11-04 15:33:19 +00:00
2024-08-14 09:50:15 +02:00
2024-11-20 14:37:21 -05:00
2024-11-15 08:24:44 -08:00
2024-11-03 13:48:55 -08:00
2024-09-25 15:05:52 -07:00
2024-10-25 11:30:16 +01:00
2024-08-03 15:33:08 -07:00
2024-07-09 14:35:49 -07:00
2024-11-08 15:29:44 -08:00
2024-11-04 13:20:25 -08:00
2024-11-03 13:48:55 -08:00
2024-09-16 10:23:41 +02:00
2024-11-03 13:48:55 -08:00
2024-11-04 12:05:25 -08:00
2024-10-16 07:21:10 -07:00
2024-11-13 11:28:36 -08:00