SkyratBot
3a83197b22
[MIRROR] Optimize cutting part of update_icon (Saves 130+ms of init) [MDB IGNORE] ( #19853 )
...
* Optimize cutting part of update_icon (Saves 130+ms of init) (#73965 )
Avoids calling `cut_overlay` if we know that we manage every overlay
we're about to remove, and short-circuits to `overlays = null`. This
saves the cost of building the appearance list and performing `-=` of
the list.
More minor change, splits validation part of `POST_OVERLAY_CHANGE` into
`VALIDATE_OVERLAY_LIMIT`. This is because there is no point checking if
we hit the overlay limit after removing overlays, since we would've
checked in `add_overlay` in reasonable cases.
* Optimize cutting part of update_icon (Saves 130+ms of init)
---------
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com >
2023-03-15 00:48:29 +00:00
..
2023-02-08 02:04:31 +00:00
2023-02-22 15:46:59 -08:00
2022-09-24 17:32:40 -04:00
2022-09-24 17:32:40 -04:00
2022-11-29 19:08:17 -08:00
2023-03-14 10:33:45 -07:00
2023-01-21 22:16:43 -08:00
2022-11-16 14:42:22 -05:00
2022-10-31 14:09:52 +00:00
2022-09-24 17:32:40 -04:00
2023-01-12 16:16:33 -05:00
2022-12-16 16:01:41 +00:00
2022-09-24 17:32:40 -04:00
2022-09-24 17:32:40 -04:00
2022-11-27 14:46:36 -08:00
2022-09-24 17:32:40 -04:00
2022-09-24 17:32:40 -04:00
2022-12-04 07:29:39 -08:00
2022-11-15 06:59:06 +00:00
2022-11-21 16:27:40 -05:00
2023-03-10 02:42:44 +00:00
2022-09-24 17:32:40 -04:00
2022-09-24 17:32:40 -04:00
2022-09-24 17:32:40 -04:00
2022-11-27 14:46:36 -08:00
2023-02-17 01:28:04 -08:00
2023-02-02 16:11:52 +00:00
2022-09-24 17:32:40 -04:00
2023-01-12 16:16:33 -05:00
2022-12-06 20:38:17 +00:00
2022-12-07 01:07:02 +00:00
2022-05-26 23:23:27 +01:00
2022-09-24 17:32:40 -04:00
2023-02-08 02:20:09 +00:00
2022-09-24 17:32:40 -04:00
2023-03-04 19:54:22 -08:00
2022-11-15 06:59:06 +00:00
2022-09-24 17:32:40 -04:00
2022-11-04 13:14:35 -04:00
2023-01-20 14:25:43 -05:00
2022-11-15 06:59:06 +00:00
2022-09-29 01:24:37 -04:00
2023-03-10 17:47:17 +00:00
2023-01-13 18:26:25 -05:00
2023-03-13 02:00:22 +00:00
2022-06-27 00:06:26 +01:00
2022-12-12 18:36:54 -05:00
2022-09-24 17:32:40 -04:00
2022-05-26 23:23:27 +01:00
2023-03-15 00:48:29 +00:00
2022-07-27 19:10:14 -04:00
2022-09-24 17:32:40 -04:00
2023-02-08 02:04:31 +00:00
2023-01-24 14:27:00 -08:00
2022-11-22 19:44:59 -08:00
2022-04-25 14:25:23 +01:00
2022-11-15 06:59:06 +00:00
2022-09-24 17:32:40 -04:00
2022-08-06 21:51:22 -07:00
2022-09-24 17:32:40 -04:00
2023-01-19 21:20:43 +00:00
2022-09-24 17:32:40 -04:00
2022-10-18 02:20:25 +00:00
2022-09-24 17:32:40 -04:00
2022-09-24 17:32:40 -04:00
2023-02-28 15:23:35 -05:00
2022-09-24 17:32:40 -04:00
2022-09-24 17:32:40 -04:00
2023-02-02 16:11:52 +00:00
2022-07-31 22:03:59 +00:00
2023-02-08 02:20:09 +00:00
2022-09-24 17:32:40 -04:00
2022-09-24 17:32:40 -04:00
2023-01-06 08:48:33 -08:00
2023-01-06 22:51:30 +00:00
2023-02-10 22:28:51 -08:00
2023-02-28 14:14:24 -05:00
2022-11-15 06:59:06 +00:00
2023-01-31 02:09:59 +00:00
2023-01-21 22:16:43 -08:00
2022-11-15 06:59:06 +00:00
2023-01-10 14:26:08 +01:00
2022-11-15 06:59:06 +00:00
2022-10-30 23:15:38 -04:00
2023-03-04 17:49:21 -08:00
2022-11-27 14:46:36 -08:00
2022-11-15 06:59:06 +00:00
2022-09-24 17:32:40 -04:00