⚡ Bolt: Replace Date.parse() with string comparison in sort loops and avoid intermediate array allocations
- Optimized `Date.parse()` out of multiple sort loops. ISO 8601 strings
sort lexicographically exactly the same as they do chronologically, making
direct string comparison mathematically safe and significantly faster.
- Converted `uniqueNonEmpty` and other mapped array `.map().filter()`
calls to single loops adding directly to `Set`s, avoiding multiple
intermediate array allocations.
- Replaced the O(N log N) `dateRange` computation (which previously used
`.sort()`) with a single O(N) pass to find min/max dates.
Co-authored-by: catoncat <204556023+catoncat@users.noreply.github.com>
authored by