rustfmt.toml
author Georges Racinet <georges.racinet@octobus.net>
Fri, 20 Oct 2023 09:12:22 +0200
changeset 51229 1b23aaf5eb7b
parent 45620 426294d06ddc
permissions -rw-r--r--
rust-index: optimize find_gca_candidates() on less than 8 revisions This is expected to be by far the most common case, given that, e.g., merging involves using it on two revisions. Using a `u8` as support for the bitset obviously divides the amount of RAM needed by 8. To state the obvious, on a repository with 10 million changesets, this spares 70MB. It is also possible that it'd be slightly faster, because it is easier to allocate and provides better cache locality. It is possible that some exhaustive listing of the traits implemented by `u8` and `u64` would avoid the added duplication, but that can be done later and would need a replacement for the `MAX` consts.

edition = "2018"
max_width = 79
wrap_comments = true
error_on_line_overflow = true