CursorperformancePerformance

Performance Cursor Rules

Performance-focused Cursor rules: profiling-first approach, caching strategy, async patterns, and optimization techniques.

.cursorrules
- 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.

#performance#caching#optimization#cursor#coding-rules

Related Rules