Performant code

From vstorm-co/pydantic-deepagents · View interactive version

Performant code is an AI agent skill from the GitHub repository vstorm-co/pydantic-deepagents. Writing efficient code that handles large data and tight constraints

How to use this skill

Skill file

Performant Code

How to write code that won't timeout on large inputs.

Think About Scale First

Before writing code, ask: how big is the data?

| Data size | Approach |

|-----------|----------|

| < 1 MB | Load into memory, any approach works |

| 1-100 MB | Load into memory, but use efficient algorithms |

| 100 MB - 1 GB | Stream/mmap, avoid loading entirely into memory |

| > 1 GB | Streaming only, chunk-based processing |

I/O Optimization

Large files

Writing output

Algorithm Complexity

Language-Specific Tips

C

Python

General

Constraints Awareness

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.