Attention is currently required from: laforge, pespin.
3 comments:
Commit Message:
Patch Set #3, Line 12: Use OTC_SELECT
That's usually my opinion too, but since I have the feeling I'm usually the only one against this I […]
My opinion is firmly with dynamic allocation.
IIRC there is a log line that prints two distinct cell IDs. For that alone, i prefer the dynamic approach.
But I'm really surprised to hear any praise for static buffers at all.
I thought that the consensus and aim is to get away from static buffers, to get away from their notorious disadvantages:
A long while back I proposed a kind of static ring buffer that alleviates the worst disadvantages of static buffers, but the code review answer was the OTC_SELECT, which after all I agree is a very elegant solution.
So now we go back from elegant to cumbersome???
If you mean to imply that this is inefficient and expensive related to the rest of osmo-hnbgw, then kindly provide the performance measurements that prove it. <- the standard answer for all premature optimization requests.
Patchset:
I would gladly change my mind, but so far am not convinced...
File src/osmo-hnbgw/hnbgw.c:
Patch Set #2, Line 348: return talloc_asprintf(OTC_SELECT, "%u-%u-L%u-R%u-S%u-C%u", ucid->mcc, ucid->mnc, ucid->lac, ucid->rac,
I hope this is not called everytime we log a line :)
i don't see a problem if it is.
We do these kinds of function calls as well as OTC_SELECT allocations A LOT for very many log statements.
Noteworthy: producing log lines and calling this function is avoided entirely when the logging category is silenced. So if a user has performance issues, they can crank up the log levels.
If you mean to imply that this is inefficient and expensive related to the rest of osmo-hnbgw, then kindly provide the performance measurements that prove it. <- the standard answer for all premature optimization requests.
To view, visit change 33169. To unsubscribe, or for help writing mail filters, visit settings.