Sender: root AT delorie DOT com Message-ID: <3752A3A0.3DDA4632@inti.gov.ar> Date: Mon, 31 May 1999 11:58:40 -0300 From: salvador Organization: INTI X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.0.36 i686) X-Accept-Language: es-AR, en, es MIME-Version: 1.0 To: Eli Zaretskii CC: djgpp-workers AT delorie DOT com Subject: Re: memmove slow References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > On Mon, 24 May 1999 salvador AT inti DOT gov DOT ar wrote: > > > This was discussed months ago, perhaps even years. The memmove function is > > unnecesary slow. > > The code provided here is twice faster in average at least in my system. > > I checked it in, thanks. > > Btw, a naive testing of the speed against the v2.02 version using > sizes from 1 to 330 shows only 15% gain (the test program I used is > attached, and will be part of djtst203.zip). Did I do something > stupid? I doubt, just used very small sizes where the setup time (needed to load the registers and check the direction of the copy) is important. Just try with a big block and you'll see the difference (I tried with 1 to 128Kb). SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org set AT ieee DOT org set-soft AT bigfoot DOT com Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013