[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #9307] Replace mem_malloc+memset with mem_calloc
From: |
Joel Cunningham |
Subject: |
[lwip-devel] [patch #9307] Replace mem_malloc+memset with mem_calloc |
Date: |
Wed, 5 Apr 2017 15:56:36 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30 |
Update of patch #9307 (project lwip):
Status: In Progress => Done
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
>> Aside from reducing code
> That seems overrated: calloc has more parameters than malloc, so your patch
might gain some 32 bytes of code or so...
I didn't do any analysis on change in object file size so you could be right.
For systems with MEM_LIBC_MALLOC set to 0, I'd expect almost no change since
mem_calloc() is just calling mem_malloc() + memset
"Reducing code" was meant to communicate less lines of source ;) I updated the
commit message to make that clearer.
Pushed in 557a11047dcab1f0aa713a2635d1845f80329d98
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?9307>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/