influxdb/querier
Marco Neumann 3e26567e05
refactor: cache slices instead of vecs (#7989)
Immutable `Box<Vec<T>>`/`Arc<Vec<T>>` are better stored as
`Box<[T]>`/`Arc<[T]>` because:

- allocation always exact (no need for `shrink_to_fit`)
- smaller (the fat pointer is just the memory address and the length, no
  capacity required)
- less allocation (`Box`/`Arc` -> slice instead of `Box`/`Arc` -> `Vec`
  -> buffer); in fact the vector itself was offen missing in the
  accounting code

Found while I was working on #7987.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-15 08:01:55 +00:00
..
src refactor: cache slices instead of vecs (#7989) 2023-06-15 08:01:55 +00:00
Cargo.toml chore: use workspace dependencies for `object_store` 2023-05-26 07:03:42 -04:00