Goldziher / go-utils

Simple and performant utilies using Go generics inspired by JavaScript and Python
https://goldziher.github.io/go-utils/
MIT License
46 stars 13 forks source link

Optimize performance and memory allocations #22

Closed VadimKulagin closed 1 year ago

VadimKulagin commented 1 year ago

Hello!

I have optimized performance and allocations in some functions.

You can see the results of the benchmarks in the descriptions of my commits.

Also, I've added some test cases and corrected a few comments.