www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/05/31/10:52:19

Sender: root AT delorie DOT com
Message-ID: <3752A3A0.3DDA4632@inti.gov.ar>
Date: Mon, 31 May 1999 11:58:40 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
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 <eliz AT is DOT elta DOT co DOT il>
CC: djgpp-workers AT delorie DOT com
Subject: Re: memmove slow
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990530135447 DOT 20904A-200000 AT is>
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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019