Messages in this thread | ![/](/images/icornerl.gif) | | Date | Tue, 2 Jan 2024 12:50:10 +0100 | Subject | Re: [0/2] net/smc: Adjustments for two function implementations | From | Markus Elfring <> |
| |
> But it is not very attractive to me since the calls occur on low-frequency paths > or unlikely condition, resulting in limited performance loss and the current > kfree() usage is fine and common.
The prioritisation of development activities influences progress in related areas.
> So what is the benfit?
* Source code clarity
* Nicer run time characteristics
See also: https://wiki.sei.cmu.edu/confluence/display/c/MEM12-C.+Consider+using+a+goto+chain+when+leaving+a+function+on+error+when+using+and+releasing+resources
> I noticed that some other discussions are on-going. It seems like you are trying > to change other similiar places.
I would appreciate if improvements can be achieved also for similarly affected software components.
Regards, Markus
| ![\](/images/icornerr.gif) |