I suspect it would be close, since the Nim compiler works hard to do things efficiently, but you would have to benchmark it. However, @treeform, @xigoi, and I have all recommended the Gene2 (object variants), so maybe start with that and see if it works for you. :-)
- Which is the preferred way to define a generic type? gcao
- Which is the preferred way to define a generic type? treeform
- Which is the preferred way to define a generic type? jxy
- Which is the preferred way to define a generic t... jibal
- Which is the preferred way to define a gener... xigoi
- Which is the preferred way to define a ... gcao
- Which is the preferred way to defin... gcao
- Which is the preferred way to d... jibal
- Which is the preferred way to d... shirleyquirk