python-performance-optimization

Installation
SKILL.md

In this repository

  • Async in API path: Use async for I/O in route handlers; do not block the event loop. If you must call a blocking function (e.g. sync RPC), use await asyncio.to_thread(blocking_func, ...). See .cursor/rules/fastapi-python-best-practices.md.
  • Database: App uses PostgreSQL with SQLModel, AsyncSession, and connection pooling. Prefer async DB operations, batching, and query optimization; see .cursor/rules/database-postgres.md. Examples in this skill use sqlite for illustration; apply patterns to Postgres/async where relevant.
  • After edits run make format and make lint from repo root. Full context: .cursor/skills/README.md and .cursor/rules/.

Python Performance Optimization

Comprehensive guide to profiling, analyzing, and optimizing Python code for better performance, including CPU profiling, memory optimization, and implementation best practices.

When to Use This Skill

Installs
1
First Seen
Mar 4, 2026
python-performance-optimization — vimalkodoth/fastapi-cursor-starterkit