Skip to content

Commit

Permalink
PR suggestions: docstring
Browse files Browse the repository at this point in the history
Co-authored-by: adienes <[email protected]>
  • Loading branch information
NHDaly and adienes authored Jan 22, 2025
1 parent 1ac71fe commit 1e29dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/expr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,12 @@ scenarios. The expr is extracted into an outlined function, which is marked `@no
Outlining an expr can be used to make a function smaller, e.g. by outlining an unlikely
branch, which could help with runtime performance by improving instruction cache locality,
and could help with compilation performance since 2 smaller functions can sometimes compile
and could help with compilation performance since two smaller functions can sometimes compile
faster than one larger function. Finally, outlining can be useful for type-stability, by
outlining a type unstable block within a hot loop, where the outlined function could be type
stable.
A common use case is to @outline the code that throws exceptions, since this should be a
A common use case is to `@outline` the code that throws exceptions, since this should be a
rare case, but it can introduce a lot of complexity to the generated code, which can
sometimes harm the compiler's ability to optimize.
Expand Down

0 comments on commit 1e29dea

Please sign in to comment.