Overview
Phase: 3 - Performance
Priority: Medium
Estimated Effort: 4-6 hours
Problem Description
Current template detection uses inefficient string operations that impact performance and don't cache compiled patterns.
Acceptance Criteria
Files to Modify
internal/engine/detection.go (new file)
internal/engine/detection_test.go (new file)
internal/generator/generator.go (update to use detector)
See roadmap/phase3-performance/UOW-008-template-optimization.md for detailed implementation plan.
Overview
Phase: 3 - Performance
Priority: Medium
Estimated Effort: 4-6 hours
Problem Description
Current template detection uses inefficient string operations that impact performance and don't cache compiled patterns.
Acceptance Criteria
Files to Modify
internal/engine/detection.go(new file)internal/engine/detection_test.go(new file)internal/generator/generator.go(update to use detector)See roadmap/phase3-performance/UOW-008-template-optimization.md for detailed implementation plan.