On  4 Dec, Poul-Henning Kamp wrote:
> In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes
> :
>>Can someone email me with a brief explaination of this M_ZERO path?
>>I see it is about something to do with memory (malloc, bcopy, etc.)
>>
>>                              Thanks Jessem.
> 
> Since a majority of malloc(9) uses immediately bzero(9) the allocation,
> I added an flag to malloc(9) so one can ask for a zero'ed allocation.
> 
> This saves a couple hundred calls to bzero(9), improves cache-locality
> and generally improves code readability as a result.
> 
> It will also allow us to operate a "idle-time-malloc(9)- zeroing-daemon"
> later.
> 
Very cool!



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to