3 ms·
Things are getting way too high-level here. Nobody will be able to answer your question because it depends on an overwhelming amount of details. Your compiler
by marcosdumay 4y ago
Things are getting way too high-level here. Nobody will be able to answer your question because it depends on an overwhelming amount of details.
Your compiler capabilities will have a much larger influence on your code performance than the lower level properties of your GPU. As always, it's a matter of profiling and discovering what is actually happening. Most times when people use polymorphism, it's free.
- taeric 4y agoAgreed it is tough to answer. Highly polymorphic code is often not that diverse, for one. And many languages that encourage polymorphism are run with a jit. Which can be seen as a higher level branch predictor. And, predictably, benefits code paths that don't have a lot of diversity in the types being sent through code.