Andrew Kelley
74db8c2e83
omit safety checks for element access in for loops
...
One of the main points of for loops is that you can safety check the
length once, before entering the loop, and then safely assume that every
element inside the loop is in bounds.
In master branch, the safety checks are incorrectly intact even inside
for loops. This commit fixes it. It's especially nice with multi-object
loops because the number of elided checks is N * M where N is how many
iterations and M is how many objects.
2023-02-18 19:20:19 -07:00
..
2023-02-18 19:17:21 -07:00
2021-04-29 15:54:04 -07:00
2021-04-29 15:54:04 -07:00
2021-04-29 15:54:04 -07:00
2021-04-29 15:54:04 -07:00
2022-12-10 21:51:46 +07:00
2023-01-23 13:48:37 -05:00
2022-12-27 21:17:52 +08:00
2023-02-18 19:17:21 -07:00
2023-01-02 14:09:01 -07:00
2022-12-06 19:06:48 -07:00
2023-01-02 15:02:33 -07:00
2022-12-06 19:06:48 -07:00
2023-02-02 00:31:35 +02:00
2023-02-18 19:17:21 -07:00
2023-01-20 16:42:24 +02:00
2022-12-10 21:51:46 +07:00
2021-10-28 17:33:05 -07:00
2022-12-10 21:51:46 +07:00
2022-12-27 21:17:52 +08:00
2023-02-18 19:17:21 -07:00
2022-12-10 21:51:46 +07:00
2023-02-15 01:43:57 +02:00
2023-02-18 21:10:27 +02:00
2023-02-18 19:17:21 -07:00
2022-02-13 14:42:20 +02:00
2023-01-10 19:17:42 +02:00
2022-12-23 23:10:04 +02:00
2022-12-23 23:10:04 +02:00
2022-12-23 23:10:04 +02:00
2022-11-04 23:13:50 +02:00
2023-01-05 22:03:32 +02:00
2023-02-03 14:48:08 +02:00
2023-02-18 19:17:21 -07:00
2022-10-25 05:11:28 -04:00
2022-12-10 21:51:46 +07:00
2022-12-27 21:26:18 +08:00
2022-12-10 16:28:49 -07:00
2022-12-10 21:51:46 +07:00
2021-05-08 14:45:21 -07:00
2023-02-18 19:17:21 -07:00
2023-02-18 19:20:19 -07:00
2023-02-18 19:17:21 -07:00
2021-05-08 14:45:21 -07:00
2022-03-11 12:59:20 -07:00
2022-12-29 11:12:08 +01:00
2022-01-07 00:06:06 -05:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2023-01-23 13:48:36 -05:00
2022-12-15 00:56:27 -08:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2023-02-18 19:17:21 -07:00
2023-02-18 19:17:21 -07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-27 21:17:52 +08:00
2023-01-29 15:04:13 -05:00
2022-03-17 11:39:56 -07:00
2022-12-27 21:17:52 +08:00
2023-01-31 17:01:56 +01:00
2022-12-10 21:51:46 +07:00
2023-01-17 20:28:42 +02:00
2023-01-22 12:00:04 +01:00
2022-12-10 21:51:46 +07:00
2021-12-11 00:29:31 +01:00
2022-12-29 12:42:44 +02:00
2021-05-08 14:45:21 -07:00
2022-12-10 21:51:46 +07:00
2022-12-17 14:11:33 +01:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2023-01-30 15:20:16 +02:00
2021-06-21 17:03:03 -07:00
2023-02-18 19:17:21 -07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-27 21:17:52 +08:00
2023-01-22 00:12:37 +02:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2023-01-17 20:28:43 +02:00
2022-12-10 21:51:46 +07:00
2023-01-29 15:04:13 -05:00
2022-09-10 01:50:17 +03:00
2022-11-03 14:07:00 +02:00
2022-12-31 20:49:02 -05:00
2022-12-10 21:51:46 +07:00
2022-12-29 11:12:08 +01:00
2022-12-17 14:11:33 +01:00
2023-02-18 19:17:21 -07:00
2023-01-17 20:28:43 +02:00
2022-12-18 13:31:38 +01:00
2023-01-16 14:04:03 +02:00
2022-12-27 21:17:52 +08:00
2022-12-27 21:17:52 +08:00
2022-12-10 21:51:46 +07:00
2022-12-31 20:49:02 -05:00
2022-12-10 21:51:46 +07:00
2022-12-27 23:13:03 -07:00
2023-02-18 19:17:21 -07:00
2023-02-18 19:17:21 -07:00
2022-03-03 18:31:55 -07:00
2022-12-29 11:12:08 +01:00
2022-12-10 16:28:49 -07:00
2022-01-29 18:12:28 +02:00