<div dir="ltr">Dear folks<div><br></div><div>Back in June, in issue 1694, I have pointed out that ndn-cxx has a tendency of over-using inline functions.</div><div>According to <a href="http://www.chromium.org/developers/coding-style/cpp-dos-and-donts#TOC-Stop-inlining-code-in-headers">C++ Dos and Don'ts</a> from Chromium project, using too much inline functions creates additional work for the linker, because every file that includes those headers would emit a version of an inline function in the object file (.o), and the linker has to eliminate those duplicates.</div><div>There's also evidence that inline functions can lead to binary size bloat, which is bad news of devices with small memory or storage, such as home routers and IoT gadgets. Even if ndn-cxx can fit into those devices, bloated binaries will consume precious memory space, and reduce available memory for ContentStore.</div><div><br></div><div>A <a href="http://redmine.named-data.net/issues/1694#note-6">decision was made in 20140708 conference call</a> that we should stop adding new inline functions unless they are trivial getters/setters, but fixing old code is low priority.</div><div>Of course, if a function is template, and all possible template parameters are not known in advance, it can be inline.</div><div><br></div><div><br></div><div>During the review of issue 2183, I suggested Change Owner to move inline functions into .cpp, as per the decision above.</div><div>However, this suggestion was rejected.</div><div>The reply was "whatever you saying. I'm refusing to do change here". No valid reason is given with this reply.</div><div><br></div><div><br></div><div>To finally resolve this and similar disputes, I request a review on the decision about inline function usage.</div><div>Please give your opinion about where inline functions should be used, along with necessary reasons and citations.</div><div><br></div><div>Yours, Junxiao</div></div>