Skip to content

Commit abe7c07

Browse files
committed
[experiment] perf-test smallvec optimizations
1 parent 311fa1f commit abe7c07

File tree

29 files changed

+79
-63
lines changed

29 files changed

+79
-63
lines changed

Cargo.lock

Lines changed: 42 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,7 @@ dependencies = [
21602160
"parking_lot",
21612161
"perf-event-open-sys",
21622162
"rustc-hash",
2163-
"smallvec",
2163+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
21642164
]
21652165

21662166
[[package]]
@@ -2174,7 +2174,7 @@ dependencies = [
21742174
"parking_lot",
21752175
"perf-event-open-sys",
21762176
"rustc-hash",
2177-
"smallvec",
2177+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
21782178
]
21792179

21802180
[[package]]
@@ -2286,7 +2286,7 @@ dependencies = [
22862286
"rustc-workspace-hack",
22872287
"rustc_version 0.4.0",
22882288
"shell-escape",
2289-
"smallvec",
2289+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
22902290
]
22912291

22922292
[[package]]
@@ -2530,7 +2530,7 @@ dependencies = [
25302530
"instant",
25312531
"libc",
25322532
"redox_syscall",
2533-
"smallvec",
2533+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
25342534
"winapi",
25352535
]
25362536

@@ -3224,7 +3224,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
32243224
checksum = "550ca1a0925d31a0af089b18c89f5adf3b286e319e3e1f1a5204c21bd2f17371"
32253225
dependencies = [
32263226
"rustc-ap-rustc_data_structures",
3227-
"smallvec",
3227+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
32283228
]
32293229

32303230
[[package]]
@@ -3240,7 +3240,7 @@ dependencies = [
32403240
"rustc-ap-rustc_macros",
32413241
"rustc-ap-rustc_serialize",
32423242
"rustc-ap-rustc_span",
3243-
"smallvec",
3243+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
32443244
"tracing",
32453245
]
32463246

@@ -3279,7 +3279,7 @@ dependencies = [
32793279
"rustc-hash",
32803280
"rustc-rayon",
32813281
"rustc-rayon-core",
3282-
"smallvec",
3282+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
32833283
"stable_deref_trait",
32843284
"stacker",
32853285
"tempfile",
@@ -3391,7 +3391,7 @@ dependencies = [
33913391
"rustc-ap-rustc_lexer",
33923392
"rustc-ap-rustc_session",
33933393
"rustc-ap-rustc_span",
3394-
"smallvec",
3394+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
33953395
"tracing",
33963396
"unicode-normalization",
33973397
]
@@ -3403,7 +3403,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
34033403
checksum = "5f741f8e9aee6323fbe127329490608a5a250cc0072ac91e684ef62518cdb1ff"
34043404
dependencies = [
34053405
"indexmap",
3406-
"smallvec",
3406+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
34073407
]
34083408

34093409
[[package]]
@@ -3554,7 +3554,7 @@ dependencies = [
35543554
"rand_core 0.5.1",
35553555
"serde",
35563556
"serde_json",
3557-
"smallvec",
3557+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
35583558
"syn",
35593559
"url 2.2.2",
35603560
"winapi",
@@ -3565,15 +3565,15 @@ name = "rustc_apfloat"
35653565
version = "0.0.0"
35663566
dependencies = [
35673567
"bitflags",
3568-
"smallvec",
3568+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
35693569
]
35703570

35713571
[[package]]
35723572
name = "rustc_arena"
35733573
version = "0.0.0"
35743574
dependencies = [
35753575
"rustc_data_structures",
3576-
"smallvec",
3576+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
35773577
]
35783578

35793579
[[package]]
@@ -3587,7 +3587,7 @@ dependencies = [
35873587
"rustc_macros",
35883588
"rustc_serialize",
35893589
"rustc_span",
3590-
"smallvec",
3590+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
35913591
"tracing",
35923592
]
35933593

@@ -3606,7 +3606,7 @@ dependencies = [
36063606
"rustc_session",
36073607
"rustc_span",
36083608
"rustc_target",
3609-
"smallvec",
3609+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
36103610
"tracing",
36113611
]
36123612

@@ -3676,7 +3676,7 @@ dependencies = [
36763676
"rustc_target",
36773677
"rustc_trait_selection",
36783678
"rustc_traits",
3679-
"smallvec",
3679+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
36803680
"tracing",
36813681
]
36823682

@@ -3697,7 +3697,7 @@ dependencies = [
36973697
"rustc_session",
36983698
"rustc_span",
36993699
"rustc_target",
3700-
"smallvec",
3700+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
37013701
"tracing",
37023702
]
37033703

@@ -3727,7 +3727,7 @@ dependencies = [
37273727
"rustc_session",
37283728
"rustc_span",
37293729
"rustc_target",
3730-
"smallvec",
3730+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
37313731
"snap",
37323732
"tracing",
37333733
]
@@ -3762,7 +3762,7 @@ dependencies = [
37623762
"rustc_span",
37633763
"rustc_symbol_mangling",
37643764
"rustc_target",
3765-
"smallvec",
3765+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
37663766
"tempfile",
37673767
"tracing",
37683768
]
@@ -3811,7 +3811,7 @@ dependencies = [
38113811
"rustc_index",
38123812
"rustc_macros",
38133813
"rustc_serialize",
3814-
"smallvec",
3814+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
38153815
"stable_deref_trait",
38163816
"stacker",
38173817
"tempfile",
@@ -3893,7 +3893,7 @@ dependencies = [
38933893
"rustc_serialize",
38943894
"rustc_session",
38953895
"rustc_span",
3896-
"smallvec",
3896+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
38973897
"tracing",
38983898
]
38993899

@@ -3926,7 +3926,7 @@ dependencies = [
39263926
"rustc_serialize",
39273927
"rustc_span",
39283928
"rustc_target",
3929-
"smallvec",
3929+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
39303930
"tracing",
39313931
]
39323932

@@ -3983,7 +3983,7 @@ dependencies = [
39833983
"rustc_session",
39843984
"rustc_span",
39853985
"rustc_target",
3986-
"smallvec",
3986+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
39873987
"tracing",
39883988
]
39893989

@@ -4029,7 +4029,7 @@ dependencies = [
40294029
"rustc_traits",
40304030
"rustc_ty_utils",
40314031
"rustc_typeck",
4032-
"smallvec",
4032+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
40334033
"tempfile",
40344034
"tracing",
40354035
"winapi",
@@ -4120,7 +4120,7 @@ dependencies = [
41204120
"rustc_session",
41214121
"rustc_span",
41224122
"rustc_target",
4123-
"smallvec",
4123+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
41244124
"snap",
41254125
"tracing",
41264126
"winapi",
@@ -4156,7 +4156,7 @@ dependencies = [
41564156
"rustc_span",
41574157
"rustc_target",
41584158
"rustc_type_ir",
4159-
"smallvec",
4159+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
41604160
"tracing",
41614161
]
41624162

@@ -4179,7 +4179,7 @@ dependencies = [
41794179
"rustc_span",
41804180
"rustc_target",
41814181
"rustc_trait_selection",
4182-
"smallvec",
4182+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
41834183
"tracing",
41844184
]
41854185

@@ -4199,7 +4199,7 @@ dependencies = [
41994199
"rustc_session",
42004200
"rustc_span",
42014201
"rustc_target",
4202-
"smallvec",
4202+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
42034203
"tracing",
42044204
]
42054205

@@ -4224,7 +4224,7 @@ dependencies = [
42244224
"rustc_span",
42254225
"rustc_target",
42264226
"rustc_trait_selection",
4227-
"smallvec",
4227+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
42284228
"tracing",
42294229
]
42304230

@@ -4240,7 +4240,7 @@ dependencies = [
42404240
"rustc_session",
42414241
"rustc_span",
42424242
"rustc_target",
4243-
"smallvec",
4243+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
42444244
"tracing",
42454245
]
42464246

@@ -4360,7 +4360,7 @@ dependencies = [
43604360
"rustc_session",
43614361
"rustc_span",
43624362
"rustc_target",
4363-
"smallvec",
4363+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
43644364
"tracing",
43654365
]
43664366

@@ -4385,7 +4385,7 @@ dependencies = [
43854385
"rustc_query_system",
43864386
"rustc_session",
43874387
"rustc_span",
4388-
"smallvec",
4388+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
43894389
"tracing",
43904390
]
43914391

@@ -4414,7 +4414,7 @@ version = "0.0.0"
44144414
dependencies = [
44154415
"indexmap",
44164416
"rustc_macros",
4417-
"smallvec",
4417+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
44184418
]
44194419

44204420
[[package]]
@@ -4513,7 +4513,7 @@ dependencies = [
45134513
"rustc_session",
45144514
"rustc_span",
45154515
"rustc_target",
4516-
"smallvec",
4516+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
45174517
"tracing",
45184518
]
45194519

@@ -4533,7 +4533,7 @@ dependencies = [
45334533
"rustc_middle",
45344534
"rustc_span",
45354535
"rustc_trait_selection",
4536-
"smallvec",
4536+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
45374537
"tracing",
45384538
]
45394539

@@ -4585,7 +4585,7 @@ dependencies = [
45854585
"rustc_target",
45864586
"rustc_trait_selection",
45874587
"rustc_ty_utils",
4588-
"smallvec",
4588+
"smallvec 1.7.0 (git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from)",
45894589
"tracing",
45904590
]
45914591

@@ -4621,7 +4621,7 @@ dependencies = [
46214621
"rustdoc-json-types",
46224622
"serde",
46234623
"serde_json",
4624-
"smallvec",
4624+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
46254625
"tempfile",
46264626
"tera",
46274627
"tracing",
@@ -4955,6 +4955,11 @@ version = "1.7.0"
49554955
source = "registry+https://github.com/rust-lang/crates.io-index"
49564956
checksum = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309"
49574957

4958+
[[package]]
4959+
name = "smallvec"
4960+
version = "1.7.0"
4961+
source = "git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from#b0e617c85ccb5a410c07e00c887d0ffd327b296a"
4962+
49584963
[[package]]
49594964
name = "snap"
49604965
version = "1.0.1"
@@ -5466,7 +5471,7 @@ dependencies = [
54665471
"serde",
54675472
"serde_json",
54685473
"sharded-slab",
5469-
"smallvec",
5474+
"smallvec 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
54705475
"thread_local",
54715476
"tracing",
54725477
"tracing-core",

compiler/rustc_apfloat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ edition = "2021"
55

66
[dependencies]
77
bitflags = "1.2.1"
8-
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
8+
smallvec = { git = "https://github.com/the8472/rust-smallvec.git", branch = "delegate-vec-extend-from", features = ["union", "may_dangle"] }

compiler/rustc_arena/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ edition = "2021"
55

66
[dependencies]
77
rustc_data_structures = { path = "../rustc_data_structures" }
8-
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
8+
smallvec = { git = "https://github.com/the8472/rust-smallvec.git", branch = "delegate-vec-extend-from", features = ["union", "may_dangle"] }

compiler/rustc_ast/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ rustc_data_structures = { path = "../rustc_data_structures" }
1414
rustc_index = { path = "../rustc_index" }
1515
rustc_lexer = { path = "../rustc_lexer" }
1616
rustc_macros = { path = "../rustc_macros" }
17-
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
17+
smallvec = { git = "https://github.com/the8472/rust-smallvec.git", branch = "delegate-vec-extend-from", features = ["union", "may_dangle"] }
1818
bitflags = "1.2.1"

compiler/rustc_ast_lowering/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ rustc_span = { path = "../rustc_span" }
1919
rustc_errors = { path = "../rustc_errors" }
2020
rustc_session = { path = "../rustc_session" }
2121
rustc_ast = { path = "../rustc_ast" }
22-
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
22+
smallvec = { git = "https://github.com/the8472/rust-smallvec.git", branch = "delegate-vec-extend-from", features = ["union", "may_dangle"] }

compiler/rustc_borrowck/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ either = "1.5.0"
1111
itertools = "0.9"
1212
tracing = "0.1"
1313
polonius-engine = "0.13.0"
14-
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
14+
smallvec = { git = "https://github.com/the8472/rust-smallvec.git", branch = "delegate-vec-extend-from", features = ["union", "may_dangle"] }
1515
rustc_data_structures = { path = "../rustc_data_structures" }
1616
rustc_errors = { path = "../rustc_errors" }
1717
rustc_graphviz = { path = "../rustc_graphviz" }

compiler/rustc_builtin_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rustc_lexer = { path = "../rustc_lexer" }
1818
rustc_parse = { path = "../rustc_parse" }
1919
rustc_target = { path = "../rustc_target" }
2020
rustc_session = { path = "../rustc_session" }
21-
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
21+
smallvec = { git = "https://github.com/the8472/rust-smallvec.git", branch = "delegate-vec-extend-from", features = ["union", "may_dangle"] }
2222
rustc_ast = { path = "../rustc_ast" }
2323
rustc_expand = { path = "../rustc_expand" }
2424
rustc_span = { path = "../rustc_span" }

compiler/rustc_codegen_cranelift/Cargo.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,3 +302,8 @@ name = "winapi-x86_64-pc-windows-gnu"
302302
version = "0.4.0"
303303
source = "registry+https://github.com/rust-lang/crates.io-index"
304304
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
305+
306+
[[patch.unused]]
307+
name = "smallvec"
308+
version = "1.7.0"
309+
source = "git+https://github.com/the8472/rust-smallvec.git?branch=delegate-vec-extend-from#b0e617c85ccb5a410c07e00c887d0ffd327b296a"

0 commit comments

Comments
 (0)