cranelift/reader/src/parser.rs: fn parse_inst_resuts: produce the results as a

SmallVec<[Value; 1]>, not as a Vec<Value>.  This isn't a useful change for any
non-developer use of Cranelift, but it does significantly reduce the amount of
allocation "noise" seen when tuning the new backend pipeline as driven by
clif-util reading .clif files.  In one case the number of malloc calls
declined by about 20% with this change.
This commit is contained in:
Julian Seward
2020-05-11 11:09:40 +02:00
committed by julian-seward1
parent ee2f861fdd
commit 94190d5724
3 changed files with 5 additions and 2 deletions

1
Cargo.lock generated
View File

@@ -489,6 +489,7 @@ name = "cranelift-reader"
version = "0.63.0"
dependencies = [
"cranelift-codegen",
"smallvec",
"target-lexicon",
"thiserror",
]