Files
go-jdenticon/go-cleanup/task-11-optimize-polygon-rendering.txt
Kevin McIntyre f84b511895 init
2025-06-18 01:00:00 -04:00

19 lines
1.0 KiB
Plaintext

You are working on the Go Jdenticon library, a Go port of the JavaScript Jdenticon library that generates deterministic identicons. This library has achieved byte-for-byte identical SVG output with the JavaScript reference implementation, which is CRITICAL to maintain.
Get task #11 from taskmaster and implement the solution:
```
tm get-task 11
```
CRITICAL CONSTRAINTS:
⚠️ MUST run reference compatibility tests after any changes:
```bash
go test ./jdenticon -run TestJavaScriptReferenceCompatibility -v
```
These tests MUST pass - they verify byte-for-byte identical SVG output with the JavaScript implementation.
⚠️ This is a rendering optimization task - improve polygon rendering efficiency while maintaining exact same output.
⚠️ This is a code quality improvement project - maintain all existing functionality while improving error handling, performance, and maintainability.
Focus on the specific requirements in the task and ensure your implementation follows Go best practices while preserving JavaScript compatibility.