diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-04-18 19:19:24 +0000 |
|---|---|---|
| committer | Trevor Gross <t.gross35@gmail.com> | 2025-04-18 16:29:27 -0400 |
| commit | 88dcaf20b5400e023024daae6a3c927a32fa36ab (patch) | |
| tree | dc9229be1fd6f5104388e83f0ec0c79417e44163 /tests/codegen/patchable-function-entry/patchable-function-entry-one-flag.rs | |
| parent | 3cecf22e0c20853675aad5d3977cb3712729a1f6 (diff) | |
| download | rust-88dcaf20b5400e023024daae6a3c927a32fa36ab.tar.gz rust-88dcaf20b5400e023024daae6a3c927a32fa36ab.zip | |
Mark generic functions `#[inline]`
Benchmarks for [1] seemed to indicate that repository organization for some reason had an effect on performance, even though the exact same rustc commands were running (though some with a different order). After investigating more, it appears that dependencies may have an affect on inlining thresholds for generic functions. It is surprising that this happens, we more or less expect that public functions will be standalone but everything they call will be inlined. To help ensure this, mark all generic functions `#[inline]` if they should be merged into the public function. Zulip discussion at [2]. [1]: https://github.com/rust-lang/libm/pull/533 [2]: https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/Dependencies.20affecting.20codegen/with/513079387
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-one-flag.rs')
0 files changed, 0 insertions, 0 deletions
