[Mono-devel-list] [Patch] Manged code is fast!

Ben Maurer 05mauben at hawken.edu
Fri May 21 12:02:32 EDT 2004

Yes, but doing the assembly ourselves would mean we can avoid the managed->unmanaged transition.

Totte tells me see can make it better. Let him deal with that part :-).

Also, we can specialize the memcpy impl. For example, for strings we know that we have char's we are copying, which in managed code means 16bits. We can use information like this to our advantage.

-- Ben

>>> Michal Moskal <malekith at pld-linux.org> 05/21/04 11:58 AM >>>
On Fri, May 21, 2004 at 09:08:33AM -0400, Ben Maurer wrote:
> 2) I wonder if it would be a good idea to manually write the
> memcpy/memmove routine in assembly. This would seem to be the best way to
> things like your `fixme' on copying with doubles. Also, we would be able
> to do per-cpu tricks (totte wants SSE2 type stff). I will try something
> like this later tonight.

You mean the C version? It's already written in assembly, at least on
glibc/x86. And I don't believe SSE-whatever can deliver better
performance of just plain memcpy.

: Michal Moskal :: http://www.kernel.pl/~malekith :: GCS !tv h e>+++ b++
: When in doubt, use brute force. -- Ken Thompson :: UL++++$ C++ E--- a?

More information about the Mono-devel-list mailing list