> For the complete Mojo documentation index, see [llms.txt](/llms.txt).
> Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

# @no_inline

You can add the `@no_inline` decorator on any function to prevent it from being
inlined by the compiler.

```mojo
@no_inline
def my_large_function():
    ...
```

Inlining is an optimization that reduces function call overhead for small,
frequently-called functions. Functions can be explicitly marked for inlining
using
[`@always_inline`](/docs/reference/decorators/always-inline/), or may be inlined
automatically by the compiler.

Too many inlined functions can slow compilation and substantially increase the
binary size of the compiled program. In particular, large or complex functions
may not benefit as much from inlining.
