Advanced Go (Golang)
Q93 / 100

What is the Go compiler's inlining budget?

Correct! Well done.

Incorrect.

The correct answer is B) A cost-based threshold (currently 80 AST nodes) controlling whether a function is inlined at call sites

B

Correct Answer

A cost-based threshold (currently 80 AST nodes) controlling whether a function is inlined at call sites

Explanation

go build -gcflags=-m shows inlining decisions. Functions exceeding the budget are not inlined. go:noinline and go:yesplease override. Inlining enables further optimizations.

Progress
93/100