Performance: Variable substitution syntax
MEDIUM IMPACT
This affects how template variables are replaced with actual data during page rendering, impacting server response time and initial content load.
{{ user.full_name }} (where full_name is precomputed in Python){{ user.name + ' ' + user.surname }}| Pattern | Server CPU Usage | Template Complexity | Response Time Impact | Verdict |
|---|---|---|---|---|
| Concatenation in template | High | High | Increases by ~10-20ms | [X] Bad |
| Precomputed variables in Python | Low | Low | Minimal impact | [OK] Good |