Try not to use any
interface as a generalization
#538
Labels
enhancement
Improving existing functionality
I4
No visible changes
performance
More of something per second
S2
Regular significance
U4
Nothing urgent
Is your feature request related to a problem? Please describe.
I'm always frustrated when I see
any
keyword when the code needs to do some common actions with the different structs. We have generics for that for more than 1.5 years already. One of such funcs is signing and verification. They are the hot ones in an average NeoFS application so even a small optimization can be good.Describe the solution you'd like
Try to use generics here. I am not sure it is really possible but still we can try it. Do some benchmarks (but even if the outcome is not that good, I would always prefer a generic version over the
any
one).Describe alternatives you've considered
Do nothing.
The text was updated successfully, but these errors were encountered: