Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



yamt%mwd.biglobe.ne.jp@localhost said:
> i intentionally avoided to use memset. this kind of optimization makes
> code cryptic, IMO

Sorry, didn't want to step onto your feet.
It is a matter of taste of course, but there is definitely
a threshold where everyone would prefer a memset over
N individual zero initializations.
(And the menset makes sure that nothing is forgotten. Better
wrongly zero-inited than random.)

> please put a comment

OK, I'll do so.

best regards
Matthias





Home | Main Index | Thread Index | Old Index