Closed jeremyfelder closed 5 months ago
I like the use of generics, my only concern is that golang generics come at performance costs in some cases. I have never benchmarked this and im not sure if this change will effect performance.
This is a good point, not sure what the performance cost is either. I'll measure it and see if it makes sense. I have other ideas on how to reduce the amount of templating that is needed but also not sure how those ideas affect perfomance.
Also regarding scalarsPointer = unsafe.Pointer(&scalars.(HostSlice[S])[0]) is this casting ?
Technically its type assertion on an interface type and not casting but essentially its the same
Superseded by #473 and #457
Describe the changes
This PR moves non-curve specific functionality to the core package for MSM, NTT, and VecOps.