Commit Graph

2 Commits

Author SHA1 Message Date
Max Podkorytov
99872ec8b3 Add container and tuple optimization helpers
- Replace lambdas with named functors in container_concat
- Add make_uniform_tuple helper for repeated value patterns
- Add container_product helper with O(1) depth fold expression
- Add merge_sequences_functor and unpack_and_merge_sequences
- Add 16 unit tests for container helpers

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-22 01:47:46 +00:00
John Shumway
15ed65db35 Improve sequence sorting and add unit tests (#3376)
Old sequence sort code was showing up on build profiles. Convert it to constexpr functions for much more efficient build-time execution. The sorting is still O(N^2), but our sequences are small enough it executes quickly. This reduced compilation time of a small convolution by more than 10% and time overall time spent in the compiler on a narrow build by %6.
2025-12-10 12:25:23 -08:00