Re: [PATCH] optimize ia32 memmove

From: Linus Torvalds
Date: Tue Dec 30 2003 - 05:07:47 EST




On Tue, 30 Dec 2003, Andreas Dilger wrote:
>
> The non-overlapping cases are probably very common and worth optimizing for:

No, almost all non-overlapping users already just use "memcpy()".

So most of the kernel uses of "memmove()" are likely overlapping - and
just optimizing the non-overlap case probably doesn't help a lot.

That's why you optimize the overlapping case in one direction. We really
should do the other case right too.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/