Charles Kerr
6293bbced0
perf: avoid redundant calls to GetView() ( #43216 )
...
* perf: avoid double-calls to GetView()
There are a lot of places where we call the virtual method GetView()
twice in succession: the first to check if the view exists, and the
second to use. This PR holds the view in a temp variable instead, e.g.:
if (auto* view = foo->GetView())
view->DoSomething();
* perf: avoid discarded GetView() call
2024-08-06 11:25:59 -05:00
..
2024-08-06 11:25:59 -05:00
2024-07-25 11:25:45 +02:00
2024-07-25 11:25:45 +02:00
2024-07-29 12:42:57 -05:00
2024-08-02 21:21:59 -05:00
2024-08-05 15:31:58 +02:00
2024-07-29 12:42:57 -05:00
2024-07-25 11:25:45 +02:00
2024-08-02 09:02:11 -05:00
2024-07-25 11:25:45 +02:00
2024-07-29 12:42:57 -05:00
2024-08-02 09:02:11 -05:00
2024-08-06 11:25:59 -05:00
2024-07-22 11:31:32 +02:00
2024-07-25 11:25:45 +02:00
2023-02-01 12:59:16 +01:00
2024-08-02 21:21:59 -05:00
2024-08-06 11:25:59 -05:00
2024-08-02 21:21:59 -05:00
2024-06-20 10:49:07 +02:00
2024-07-22 11:31:32 +02:00
2023-12-13 13:01:03 -08:00
2023-12-13 13:01:03 -08:00
2023-11-01 10:02:12 -04:00
2024-07-25 11:25:45 +02:00
2024-07-25 11:25:45 +02:00
2023-09-26 16:00:46 -04:00
2024-06-10 17:00:20 -05:00
2024-07-29 12:42:57 -05:00
2024-07-25 11:25:45 +02:00
2024-07-29 12:42:57 -05:00
2024-07-29 12:42:57 -05:00
2024-07-25 11:25:45 +02:00
2024-07-29 12:42:57 -05:00
2024-07-29 12:42:57 -05:00
2024-02-05 18:12:34 -06:00
2024-07-29 12:42:57 -05:00
2022-01-10 17:31:39 -05:00
2021-11-22 16:34:31 +09:00
2024-07-29 12:42:57 -05:00
2024-07-29 12:42:57 -05:00
2022-11-07 10:15:57 -08:00
2023-08-28 10:29:27 -04:00
2024-05-29 13:07:02 -05:00
2024-07-25 11:25:45 +02:00
2024-05-21 14:21:31 -05:00
2023-12-13 13:01:03 -08:00
2024-07-29 12:42:57 -05:00
2024-07-29 12:42:57 -05:00
2024-07-29 12:42:57 -05:00
2024-08-02 21:21:59 -05:00
2024-07-29 12:42:57 -05:00
2024-06-10 17:00:20 -05:00
2024-07-25 11:25:45 +02:00
2024-07-22 11:31:32 +02:00
2024-07-29 12:42:57 -05:00
2024-07-29 12:42:57 -05:00
2024-07-29 12:42:57 -05:00
2024-07-17 09:48:03 -04:00
2024-07-29 12:42:57 -05:00
2024-07-29 12:42:57 -05:00
2022-02-09 18:58:52 -08:00
2021-11-22 16:34:31 +09:00
2024-06-07 17:18:35 -04:00
2024-06-20 10:49:07 +02:00
2024-04-15 18:10:32 -04:00
2024-04-15 18:10:32 -04:00
2024-07-29 12:42:57 -05:00
2024-07-29 12:42:57 -05:00
2024-07-10 15:32:50 +02:00
2024-07-10 15:32:50 +02:00
2024-04-15 18:10:32 -04:00
2024-05-29 13:07:02 -05:00
2024-07-22 11:31:32 +02:00
2021-11-22 16:34:31 +09:00
2024-01-10 19:00:37 -06:00
2024-07-29 12:42:57 -05:00
2024-07-25 11:25:45 +02:00
2023-06-22 10:51:15 +02:00
2024-07-25 11:17:37 +02:00
2024-07-02 09:51:33 +02:00
2024-02-21 12:59:49 -08:00
2023-10-03 12:26:35 -07:00
2024-07-25 11:25:45 +02:00
2024-07-25 11:25:45 +02:00
2024-07-22 11:31:32 +02:00
2021-11-22 16:34:31 +09:00
2024-06-11 08:32:16 -05:00
2023-09-12 16:53:20 -07:00
2024-07-25 11:25:45 +02:00
2024-07-22 11:31:32 +02:00
2024-07-22 11:31:32 +02:00
2023-05-11 16:07:39 -04:00
2024-06-07 17:18:35 -04:00
2022-01-26 13:59:09 -08:00
2024-08-01 12:13:13 +02:00
2024-08-05 09:57:16 +02:00
2022-09-27 12:47:46 -07:00
2024-07-25 11:25:45 +02:00
2024-07-29 12:42:57 -05:00
2024-06-27 14:56:36 +02:00
2024-07-25 11:25:45 +02:00
2024-07-25 11:25:45 +02:00
2024-07-25 11:25:45 +02:00
2023-05-11 16:07:39 -04:00
2024-07-25 11:25:45 +02:00
2024-05-09 09:53:09 -04:00
2024-07-22 11:31:32 +02:00
2024-07-22 11:31:32 +02:00
2024-07-25 11:25:45 +02:00
2024-07-25 11:25:45 +02:00
2022-02-09 18:58:52 -08:00
2023-06-09 11:20:43 -05:00
2023-06-09 11:20:43 -05:00
2024-07-25 11:25:45 +02:00
2022-08-17 11:35:53 -07:00
2024-07-25 11:25:45 +02:00
2024-04-10 22:06:47 +02:00
2024-07-25 11:25:45 +02:00
2024-07-19 12:26:57 -05:00
2024-07-02 09:51:33 +02:00
2024-07-29 12:42:57 -05:00
2024-07-29 12:42:57 -05:00
2024-07-02 09:51:33 +02:00
2024-05-21 14:21:31 -05:00
2023-11-28 13:40:12 -08:00
2024-01-05 12:18:31 +01:00
2024-07-22 10:44:08 +02:00
2024-07-22 10:44:08 +02:00
2024-01-10 14:01:49 -06:00
2024-07-22 11:31:32 +02:00
2024-07-29 12:42:57 -05:00