go-linq icon indicating copy to clipboard operation
go-linq copied to clipboard

Why `ToSlice` need a custom grow strategy instead of the standard library?

Open Sora233 opened this issue 2 years ago • 1 comments

reflect.Append() is more robust I think.

Sora233 avatar Dec 09 '21 07:12 Sora233

I don't know if it was available at the time or we knew about it. I doubt it was intentionally picked. I highly recommend writing a Benchmark test with Go testing package and seeing if it performs better.

ahmetb avatar Dec 09 '21 07:12 ahmetb