Performance Cursor Rules
Performance-focused Cursor rules: profiling-first approach, caching strategy, async patterns, and optimization techniques.
- Profile before optimizing; measure with real data, not assumptions - Use caching at multiple levels: CDN, application, database query results - Batch external API calls and database queries to reduce round trips - Use pagination and cursor-based pagination for large datasets - Implement connection pooling for all database and HTTP client connections - Use async/non-blocking I/O for all network and file operations - Compress responses with gzip/brotli; use CDN for static assets - Set appropriate cache-control headers; use ETags for conditional requests
How to use with Cursor
Create a `.cursorrules` file in your project root and paste these rules. Cursor reads this automatically on every AI interaction.
Related Rules
Python Cursor Rules
Best Cursor AI coding rules for Python development. Enforce type hints, PEP 8, Pythonic patterns, and modern Python best practices in your .cursorrules file.
TypeScript Cursor Rules
Cursor rules for TypeScript: enforce strict mode, eliminate any types, and write type-safe code with these .cursorrules configurations.
React Cursor Rules
Cursor rules for React: component patterns, hooks best practices, performance optimization, and clean state management conventions.
Next.js Cursor Rules
Cursor rules for Next.js App Router: server components, data fetching, routing, and deployment best practices.