graph-gophers / dataloader

Implementation of Facebook's DataLoader in Golang
MIT License
1.21k stars 75 forks source link

Slice of Pointers (?) #90

Open K4L1Ma opened 2 years ago

K4L1Ma commented 2 years ago

I would like to understand the reasoning behind this BatchFunc type especially why is it a Slice of Pointers as it could potentially lead to memory leakages, as the opposite could even perform better* I think it would be better for it to be just a slice

*some reference: https://groups.google.com/g/golang-nuts/c/C2Ir0GI2gEk/m/fO3Zte1sAgAJ