<p>Corey Farrell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/8366">View Change</a></p><p>Patch set 2:</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">(2 comments)</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">(1 comment)<br>> This may be crazy but how much of a performance hit would we take<br>if __ast_calloc et al were always real functions provided by<br>main/astmm.c instead of AST_INLINE_API in utils.h?  Then just<br>have<br>the implementation of main/astmm.c chosen by `#if<br>defined(MALLOC_DEBUG)`.<br> I know there would be a hit, I'm just not sure it's prohibitive.</pre></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I'd like to do that since it would reduce the inline code bloat. <br>However,<br>something would need to be done about the varying definitions of<br>MALLOC_FAILURE_MSG.  That would need to be another patch though.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I do think we overuse inline functions.  They are supposed to<br>provide<br>benefit when the overhead of calling a function is more than the<br>time needed to execute the function itself.  This means that<br>inlined<br>functions should be tiny.  e.g., Value accessor functions.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I just wrote a follow-up patch to remove all allocation AST_INLINE_API functions from utils.h and put them into astmm.c.  I will post once this review is merged, I just wanted to mention this now so you do not duplicate the work I've done.</p><ul style="list-style: none; padding-left: 20px;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/8366">change 8366</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8366"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ic07ad80b2c2df894db984cf27b16a69383ce0e10 </div>
<div style="display:none"> Gerrit-Change-Number: 8366 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 23 Feb 2018 12:47:59 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>