about summary refs log tree commit diff
path: root/src/test/codegen/integer-overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-05-08 18:48:29 +0200
committerGitHub <noreply@github.com>2020-05-08 18:48:29 +0200
commit0c8ef4772a18b913965382613ca1e99b98f37e08 (patch)
treebbf29020341b784a3a41e39132c6860b4217ce38 /src/test/codegen/integer-overflow.rs
parente3a4ff0d76d6d479e3cc113eadbd8494c2ab89b8 (diff)
parentd26d187ff83b0b10687a3c380114cda1590d9e26 (diff)
downloadrust-0c8ef4772a18b913965382613ca1e99b98f37e08.tar.gz
rust-0c8ef4772a18b913965382613ca1e99b98f37e08.zip
Rollup merge of #71975 - nnethercote:reduce-TypedArena-creations-in-check_match, r=oli-obk
Reduce `TypedArena` creations in `check_match`.

`check_match` creates a new `TypedArena` for every call to
`create_and_enter`. DHAT tells me that each `TypedArena` typically is
barely used, with typically a single allocation per arena.

This commit moves the `TypedArena` creation outwards a bit, into
`check_match`, and then passes it into `create_and_enter`. This reduces
the number of arenas created by about 4-5x, for a very small perf win.
(Moving the arena creation further outwards is hard because
`check_match` is a query.)

r? @oli-obk
Diffstat (limited to 'src/test/codegen/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions