for i := range fields.flattened {I intend to run benchmarks to see if this extra loop over all fields makes a difference [1].
If so, init can set a hint if any field has string set (which should be rare), and otherwise skip this loop.
[1] We need to do this first rather than inline where the later check occurs below in order to keep the semantic behavior as similar to other errInit errors, which include other struct tag errors. Otherwise, e.g., we will start writing marshal output before returning this error.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +2 |
Thanks! I'd like to see benchmark data, though.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |