Date: Tue, 20 Mar 2001 18:25:30 -0700 From: Warner Losh <imp@harmony.village.org> To: "Michael C . Wu" <keichii@peorth.iteration.net> Cc: thinker <thinker@branda.to>, freebsd-current@FreeBSD.ORG Subject: Re: /bin/ls mb patch again Message-ID: <200103210125.f2L1PU919996@harmony.village.org> In-Reply-To: Your message of "Tue, 20 Mar 2001 02:36:58 CST." <20010320023657.B47174@peorth.iteration.net> References: <20010320023657.B47174@peorth.iteration.net> <20010320163153.A14341@hell.branda.to>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010320023657.B47174@peorth.iteration.net> "Michael C . Wu" writes: : Thinker thinks that memset() is too costly to use here : to modify one or two bytes. I agreed with him in that : filenames can't be that long to justify the memset() : overhead. However, with today's CPU power, I think : memset()'s overhead will only be noticeable with a : large directory filled with data. Please tell Thinker : what you think. It is mostly a conceptual thing. You are setting memory or copying memory. You should use the API for that rather than roll your own. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103210125.f2L1PU919996>