Skip to content

Commit

Permalink
Auto merge of rust-lang#129965 - cuviper:raw-indexmap, r=<try>
Browse files Browse the repository at this point in the history
[DO NOT MERGE] Try `indexmap` with its own `RawTable`

I want to see whether there's any noticeable performance difference in `rustc` if `indexmap` embeds its own copy of `hashbrown::raw::RawTable<usize>`, specialized for its own use. The generic parameters are removed, as well as a lot of unused code, and some of the raw API is further tweaked for dealing with always-copyable `usize` data.

* Full `indexmap` comparison: indexmap-rs/indexmap@master...cuviper:raw
* Changes after the initial import: indexmap-rs/indexmap@cfb8d04...cuviper:raw

r? ghost
  • Loading branch information
bors committed Sep 4, 2024
2 parents 842d6fc + adce254 commit d3ed2e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1764,12 +1764,10 @@ checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683"

[[package]]
name = "indexmap"
version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93ead53efc7ea8ed3cfb0c79fc8023fbb782a5432b52830b6518941cebe6505c"
version = "2.5.0"
source = "git+https://github.com/cuviper/indexmap?branch=raw#4db206673c970d65e35cecebf9d26acd85b15a30"
dependencies = [
"equivalent",
"hashbrown",
"rustc-rayon",
"serde",
]
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,7 @@ codegen-units = 1
# FIXME: LTO cannot be enabled for binaries in a workspace
# <https://github.com/rust-lang/cargo/issues/9330>
# lto = true

[patch.crates-io.indexmap]
git = "https://github.com/cuviper/indexmap"
branch = "raw"

0 comments on commit d3ed2e8

Please sign in to comment.