Scott Lamb 2985214d87 reduce per-slice allocations
`slices::Slices::get_range` was too closely following the example of
`http_serve::Entity::get_range`:

The latter is once-per-request, so just boxing is low-cost and makes
sense to easily avoid monomorphization bloat when there are potentially
many types of entity streams in one program. In Moonfire, it's used with
different streams defined in the `moonfire_nvr::web::mp4`,
`moonfire_nvr::bundled_ui`, and `http_serve::file` modules. Putting them
all into a single boxless enum would be a pain. In particular, the last
one is not a nameable type today and would need more generic parameters
to implement the caller-demanded `Entity` definition.

The former is once-per-slice, there are tons of slices per request, and
it's easy to define a two-case enum right where it's needed. So the
trade-off is quite different.

Also fix up some out-of-date comments.
2025-03-07 18:54:41 -08:00
..
2025-03-07 18:54:41 -08:00
2025-02-07 10:04:29 -08:00
2024-01-06 11:41:28 -08:00
2023-01-28 11:59:21 -08:00
2025-02-07 10:04:29 -08:00
2024-08-19 08:13:35 -07:00
2023-01-29 15:01:19 -08:00
2023-07-09 22:04:17 -07:00
2025-01-22 14:16:31 -08:00
2025-02-07 10:04:29 -08:00
2021-04-10 17:34:52 -07:00
2022-09-28 09:29:16 -07:00
2022-03-09 13:18:33 -08:00
2025-03-07 09:26:35 -08:00
2023-10-20 22:13:01 -07:00
2024-08-19 08:13:35 -07:00
2025-01-22 14:16:31 -08:00
2025-01-22 14:16:31 -08:00