|
|
|
|
|
by burntsushi
2925 days ago
|
|
> Having said all that, will an implementation of your code with generics be all that much faster? Likely yes. If generics are implemented via monomorphization, then you can avoid the overhead of virtual calls necessitated by interfaces. It is possible that the compiler could become smart enough to devirtualize calls through interfaces. |
|