mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Add comment on inlining
This commit is contained in:
parent
07f5d0c7fd
commit
b3956569a6
1 changed files with 3 additions and 0 deletions
|
@ -224,6 +224,9 @@ pub fn num_literal(
|
|||
constraints.exists([num_var], and_constraint)
|
||||
}
|
||||
|
||||
// Try not to be too clever about inlining, at least in debug builds.
|
||||
// Inlining these tiny leaf functions can lead to death by a thousand cuts,
|
||||
// where we end up with huge stack frames in non-tail-recursive functions.
|
||||
#[cfg_attr(not(debug_assertions), inline(always))]
|
||||
pub fn builtin_type(symbol: Symbol, args: Vec<Type>) -> Type {
|
||||
Type::Apply(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue