Sorry for late bump I saw someone suggesting similar in another thread because ChatGPT ran with this implementation So I ran a benchmark for it and this is actually less performant both in terms of speed and allocations I'm