Jonathan Brouwer
f02eaf6ea5
Rollup merge of #153434 - Zalathar:bucket-index, r=nnethercote
...
Use a safe `BucketIndex` abstraction in `VecCache`
The current code for indexing into bucket arrays is quite tricky and unsafe, partly because it has to keep manually assuring the compiler that a bucket index is always less than 21.
By encapsulating that knowledge in a 21-value enum, we can make the code clearer and safer, without giving up performance.
Having a dedicated `BucketIndex` type could also help with further cleanups of `VecCache` indexing.
2026-03-24 10:54:03 +01:00
..
2026-03-11 22:05:44 +01:00
2026-02-08 18:21:47 +11:00
2026-03-11 06:25:23 +11:00
2026-03-22 23:18:29 +01:00
2026-03-22 18:35:02 +01:00
2026-03-23 12:00:59 +01:00
2026-03-23 20:18:36 +01:00
2026-03-23 12:09:34 +01:00
2026-03-23 20:18:36 +01:00
2026-03-23 12:14:54 +01:00
2026-03-15 20:38:45 +00:00
2026-03-23 15:46:13 +00:00
2026-03-23 12:14:54 +01:00
2026-03-23 20:18:34 +01:00
2026-03-24 17:52:09 +11:00
2026-03-18 15:07:31 +11:00
2026-03-10 11:56:29 +01:00
2026-03-01 10:47:29 +01:00
2026-03-22 18:34:43 +01:00
2026-03-23 20:18:36 +01:00
2026-03-21 19:18:20 +01:00
2026-03-23 12:14:56 +01:00
2026-03-23 19:06:58 +00:00
2026-03-07 15:36:56 +00:00
2026-03-11 06:25:23 +11:00
2026-03-23 15:46:13 +00:00
2026-03-24 12:56:51 +11:00
2026-03-18 10:36:19 +11:00
2026-03-07 15:36:56 +00:00
2026-03-23 12:09:34 +01:00
2026-03-23 20:18:34 +01:00
2026-03-04 06:10:42 +00:00
2026-03-22 20:32:22 +01:00
2026-03-22 20:32:22 +01:00
2026-03-15 14:53:00 +01:00
2026-02-24 12:03:17 +01:00
2026-03-21 14:22:10 +11:00
2026-03-23 12:14:54 +01:00
2026-03-23 23:42:51 -04:00
2026-03-23 12:14:56 +01:00
2026-03-12 12:31:40 +01:00
2026-03-11 22:05:45 +01:00
2026-03-12 14:37:51 +01:00
2026-03-23 12:09:34 +01:00
2026-03-21 00:42:48 +01:00
2026-02-18 19:39:51 +09:00
2026-03-23 15:46:13 +00:00
2026-03-17 10:19:23 +05:00
2026-03-23 12:14:51 +01:00
2026-03-16 23:25:36 +08:00
2026-03-16 23:25:36 +08:00
2026-03-24 04:54:28 +00:00
2026-03-23 20:18:35 +01:00
2026-03-17 01:52:28 +01:00
2026-02-13 09:25:39 +08:00
2026-03-23 12:14:54 +01:00
2026-03-20 15:33:05 +11:00
2026-03-08 22:02:23 +11:00
2026-03-23 15:46:13 +00:00
2026-02-10 10:22:05 -05:00
2026-03-23 22:28:18 +00:00
2026-03-24 08:47:34 +11:00
2026-03-23 12:09:34 +01:00