This C code adds the content of one buffer to another one, with no checking.  
The corresponding racket code runs about 10x slower. Do you folks think that it 
should be possible to do better? (One salient fact: these are 
shorts--16-bit-ints--not 32-bit ints.)

John



void addOn(short *dst, int dstOffset, short *src, int srcOffset, int len) {
  int i;
  for (i = 0; i<len; i++) {
    dst[i+dstOffset] += src[i+srcOffset];
  }}

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Reply via email to