<p>Sean Bright <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/6988">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip: Improve CLI completion performance<br><br>Previously, this code would duplicate the target ao2 container and<br>iterate it for each of the objects within it. For a small number of<br>objects this was fine, but as the number of objects grows the<br>performance degrades quickly. For 4000 endpoints, the completion of:<br><br>  pjsip show endpoint <tab><br><br>Takes over 10 minutes on my development workstation.<br><br>This patch adds a cache of a given command's possible completions in<br>thread local storage for more performant iteration and retrieval. 4000<br>endpoints are now completed in under 1 second on my development machine.<br><br>Change-Id: Ib6fdeb5283b7c1c66df22c0fa08e95524bf55011<br>---<br>M res/res_pjsip/pjsip_cli.c<br>1 file changed, 130 insertions(+), 71 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/88/6988/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/6988">change 6988</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/6988"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: Ib6fdeb5283b7c1c66df22c0fa08e95524bf55011 </div>
<div style="display:none"> Gerrit-Change-Number: 6988 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>