Skip to content

Commit e78ddd1

Browse files
committed
Clarify effects of inlining.
Fixes #93.
1 parent 0e02d07 commit e78ddd1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/inlining.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Inlining
22

33
Entry to and exit from hot, uninlined functions often accounts for a
4-
non-trivial fraction of execution time. Inlining these functions can provide
5-
small but easy speed wins.
4+
non-trivial fraction of execution time. Inlining these functions removes these
5+
entries and exits and can enable additional low-level optimizations by the
6+
compiler. In the best case the overall effect is small but easy speed wins.
67

78
There are four inline attributes that can be used on Rust functions.
89
- **None**. The compiler will decide itself if the function should be inlined.

0 commit comments

Comments
 (0)