How do I make this allocation free?

Seems related:

TLDR: performance of maximum has a lot of room for improvement, and there is an ongoing effort to fix it.

1 Like