NetBSD-Bugs archive

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

Re: kern/50571: src/sys/fs/udf/udf_subr.c:6465: obvious performance tidyup



The following reply was made to PR kern/50571; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/50571: src/sys/fs/udf/udf_subr.c:6465: obvious performance
 tidyup
Date: Fri, 18 Dec 2015 23:22:54 +0100

 On Fri, Dec 18, 2015 at 09:25:01PM +0000, Robert Elz wrote:
 >  Clearing an entire struct/array before then assigning other values to some
 >  elements is standard practice - if this is offending any automated checking
 >  code, that ought to be fixed.   If it is just your sensibilities, get over
 >  it.
 
 Compilers are also starting to recognize this pattern and optimize
 redundant writes accordingly.
 
 Joerg
 


Home | Main Index | Thread Index | Old Index