[Mono-devel-list] [PATCH] String speedup

Torstensson, Patrik patrik.torstensson at intel.com
Mon Feb 23 03:31:30 EST 2004


Nice :)

You can never be to sure..

- Patrik 

-----Original Message-----
From: Ben Maurer [mailto:bmaurer at users.sourceforge.net] 
Sent: den 23 februari 2004 00:40
To: Torstensson, Patrik
Cc: Mono Development
Subject: RE: [Mono-devel-list] [PATCH] String speedup

Hey duder,

On Sun, 2004-02-22 at 18:32, Torstensson, Patrik wrote:
> The icall must use the memmove instead of memcpy because problems with
> overlapping memory blocks (see
> http://www.mail-archive.com/mono-list@lists.ximian.com/msg05275.html)

Not really,

The function takes two arguments, a string to copy to and a char [].
Since a string is not a char [], there is no chance that they could be
the same buffer.

-- Ben






More information about the Mono-devel-list mailing list