AI Applications in C++: How costly are virtual functions? What are the possible optimizations?

前端 未结 15 1298
慢半拍i
慢半拍i 2020-12-23 12:43

In an AI application I am writing in C++,

  1. there is not much numerical computation
  2. there are lot of structures for which run-time polymorphism is ne
15条回答
  •  天命终不由人
    2020-12-23 13:05

    Have you actually profiled and found where, and what needs optimization?

    Work on actually optimizing virtual function calls when you have found they actually are the bottleneck.

提交回复
热议问题