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

前端 未结 15 1299
慢半拍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:11

    Section 5.3.3 of the draft Technical Report on C++ Performance is entirely devoted to the overhead of virtual functions.

提交回复
热议问题