5,032,138 AI resources indexedWorking toward the world’s largest AI resource index.

Cairo Inlining

Explain Cairo inlining attributes and performance tradeoffs; use when a request involves #[inline], #[inline(always)], #[inline(never)], or code size/step tradeoffs in Cairo.

Installable skillApache-2.0By David-Li0406Updated Oct 30, 2026
INTENDED FOROpenClawInstall in a listed agent.

instructions.md

---
name: cairo-inlining-3f639bc2b5ad
description: Explain Cairo inlining attributes and performance tradeoffs; use when a request involves #[inline], #[inline(always)], #[inline(never)], or code size/step tradeoffs in Cairo.
---

# Cairo Inlining

## Overview
Explain how Cairo inlining works, its attributes, and performance vs size tradeoffs.

## Quick Use
- Read `references/inlining.md` before answering.
- Use short examples with `#[inline(always)]` and `#[inline(never)]`.
- Emphasize that inlining hints may be ignored.

## Response Checklist
- Choose between `#[inline]`, `#[inline(always)]`, and `#[inline(never)]`.
- Mention that inlining reduces call overhead but can increase code size.
- Suggest inlining small, frequently called functions.

## Example Requests
- "When should I use #[inline(always)]?"
- "Why did my program size increase after inlining?"

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.