From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CE6fM-0001eO-9T for qemu-devel@nongnu.org; Sun, 03 Oct 2004 09:44:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CE6fL-0001eD-Vh for qemu-devel@nongnu.org; Sun, 03 Oct 2004 09:44:44 -0400 Received: from [129.104.30.34] (helo=a.mx.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CE6YQ-0001xF-Q3 for qemu-devel@nongnu.org; Sun, 03 Oct 2004 09:37:35 -0400 Message-ID: <416000CE.7090103@bellard.org> Date: Sun, 03 Oct 2004 15:38:22 +0200 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] [Patch] Clear memory using memset instead of handcoded loop References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: degger@fhm.edu Cc: qemu-devel@nongnu.org Applied. Fabrice. Daniel Egger wrote: > Hija, > > while profiling the lastest qemu snapshot on OS X I discovered > that one of the tb_hash clearing routines turnes up to be a > "hotspot" during my typical test procedure which includes > booting an installed Debian Sarge RC. > > Attached patch turnes three handcoded memory clearing routines > into a call to memset which will be optimized by every serious > compiler into either a very optimized inline sequence for the > CPU or at least into a call of an optimized memory clearing > function (bzero on Darwin 7.5 with gcc 3.3). > > Please CC me on replies. > > > > Servus, > Daniel > > > ------------------------------------------------------------------------ > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel