QuesHub > 函数 > 内联 > 堆栈 > ASK DETAIL

Why do we use inline functions?

Amelia Kim | 2023-05-05 12:30:31 | page views:1767
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Noah Davis

Works at the International Finance Corporation, Lives in Washington, D.C., USA.
Inline function instruct compiler to insert complete body of the function wherever that function got used in code. It also save overhead of variables push/pop on the stack, while function calling. It also save overhead of return call from a function.
2023-05-08 12:30:31

Liam Thompson

QuesHub.com delivers expert answers and knowledge to you.
Inline function instruct compiler to insert complete body of the function wherever that function got used in code. It also save overhead of variables push/pop on the stack, while function calling. It also save overhead of return call from a function.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4