# Performance

## Principles

Optimise based on evidence.

---

# Important Areas

Database:

- Query efficiency.
- Indexes.

Frontend:

- Bundle size.
- Rendering.

Backend:

- Expensive operations.

AI:

- Token usage.
- Response time.

---

# Avoid

Optimising prematurely.

Complex caching without measurements.