about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-17 16:22:44 +0000
committerbors <bors@rust-lang.org>2024-02-17 16:22:44 +0000
commit12b5498f3bcaa9f7b7641ed829873da0907b21dc (patch)
tree8e2a24ee1c47cb5da83598c4907925027919c807 /compiler/rustc_interface/src
parenteeeb021954e30a6b16fc12cc4b8a1bcf7910a40e (diff)
parentf6fa03bfaed8e20adab961ef5d3f42b3246c5228 (diff)
downloadrust-12b5498f3bcaa9f7b7641ed829873da0907b21dc.tar.gz
rust-12b5498f3bcaa9f7b7641ed829873da0907b21dc.zip
Auto merge of #120023 - klensy:tidy-alloc, r=Mark-Simulacrum
tidy: reduce allocs

this reduces allocs in tidy from (dhat output)

```
==31349== Total:     1,365,199,543 bytes in 4,774,213 blocks
==31349== At t-gmax: 10,975,708 bytes in 66,093 blocks
==31349== At t-end:  2,880,947 bytes in 12,332 blocks
==31349== Reads:     5,210,008,956 bytes
==31349== Writes:    1,280,920,127 bytes
```
to
```
==66633== Total:     791,565,538 bytes in 3,503,144 blocks
==66633== At t-gmax: 10,914,511 bytes in 65,997 blocks
==66633== At t-end:  395,531 bytes in 941 blocks
==66633== Reads:     4,249,388,949 bytes
==66633== Writes:    814,119,580 bytes
```

<del>by wrapping regex and updating `ignore` (effect probably not only from `ignore`, didn't measured)</del>

also moves one more regex into `Lazy` to reduce regex rebuilds.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions