Content deleted Content added
+short description |
Guy Harris (talk | contribs) Restrictive clause, so use "that". |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1:
{{short description|Subroutines in computer science}}
A '''leaf routine''', '''leaf subroutine''', '''leaf function''', or '''leaf procedure''' is a [[
The term "leaf" refers to their position as [[leaf node]]s in the [[call graph]] of the program.
Usually, most non-leaf routines call more than one other function. When this is the case, the majority of function calls in the call graph are calls to leaf routines, because a [[binary tree]] has more leaf nodes than non-leaf nodes (assuming that all non-leaf nodes have two children). Consequently, the efficiency of calls to leaf routines often has a significant effect on the efficiency of the whole program.{{fact|date=July 2025}}
== References ==
{{Reflist}}
[[Category:Subroutines]]
|