4 ms·
I made this: https://github.com/imjasonh/tros https://github.com/imjasonh/tros It's slower than doing it yourself but for normal-sized slices you shouldn't not
by ImJasonH 10y ago
I made this: https://github.com/imjasonh/tros https://github.com/imjasonh/tros
It's slower than doing it yourself but for normal-sized slices you shouldn't notice.
Also https://github.com/bradfitz/slice https://github.com/bradfitz/slice which is similar but faster and relies on more unsafe black magic.