www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/23/14:07:49

Message-Id: <m0vc9ep-000S1pC@natacha.inti.edu.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT edu DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT natacha DOT inti DOT edu DOT ar>
To: Daniel Everton <evos AT m140 DOT aone DOT net DOT au>, djgpp AT delorie DOT com
Date: Mon, 23 Dec 1996 15:47:33 +0000
MIME-Version: 1.0
Subject: Re: memcpy(); is there something faster?

Hi Daniel:
> 
> In a program I'm currently writing I need to copy some biggish (64k) 
> shunks of memory around. I'm using memcpy() at the moment but it's not 
> quite fast enough. Is there some other function that any one can 
> suggest? The memory has all been allocated with malloc() and I'm not 
> copying between conventional memory or something like that. Any help 
> appreciated.
> 
Depends on the CPU, for 486 memcpy is very very fast (copies double 
words even if the data isn't aligned), may be in a Pentium simple 
instructions (not rep movXX) can be executed faster, but if the speed 
of memcpy isn't enough for you think about buying a faster machine.

SET
--------------- 0 --------------------------------
Salvador Eduardo Tropea (SET).
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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