<p><a href="https://gerrit.osmocom.org/c/libosmocore/+/22438">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/22438/1/src/gb/gprs_bssgp_rim.c">File src/gb/gprs_bssgp_rim.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/22438/1/src/gb/gprs_bssgp_rim.c@156">Patch Set #1, Line 156:</a> <code style="font-family:monospace,monospace">     static __thread char rai_buf[32];</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">why don't you allocate these in the stack?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">oh, now I see, thats of course unnecessary.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/22438/1/src/gb/gprs_bssgp_rim.c@158">Patch Set #1, Line 158:</a> <code style="font-family:monospace,monospace">     static __thread char en_bid_buf[16];</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">You have 2 buffers but you use up to 2 only in each branch, so you can declare only 2 buffers.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I want to have dedicated buffers to make the code more readable, now they are on the stack, so I think we can afford that extra memory now.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/22438/1/src/gb/gprs_bssgp_rim.c@173">Patch Set #1, Line 173:</a> <code style="font-family:monospace,monospace">                   osmo_rai_name2_buf(rai_buf, sizeof(rai_buf), &rai), ri->geran.cid);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">There's osmo_cgi_ps_name family of APIs for this</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/22438">change 22438</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/libosmocore/+/22438"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Idca6bdccffe663aea71a0183ca3ea5bb5b59e702 </div>
<div style="display:none"> Gerrit-Change-Number: 22438 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 26 Jan 2021 15:20:41 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>