[Mono-devel-list] Patch for String.Equals

Michal Moskal malekith at pld-linux.org
Mon Apr 5 07:29:26 EDT 2004

On Sun, Apr 04, 2004 at 07:48:52PM -0400, Ben Maurer wrote:
> Hello,
> This is very interesting. Am going to look into the assembly we generate
> to see if this is the best we can do.
> I am a bit unsure about the long compares, what do they gain us?
> Internally, they are just two int compares.

x86-64 anyone?

However the problem with comparing strings as ints -- are they properly
aligned? Using unaligned access on x86 slows things down, and on ppc
it AFAIR generates an exception.

: 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