[Mono-dev] Patch for IPAddress.cs
Gareth Pearce
tilps.kilm at gmail.com
Sat Mar 24 22:04:46 EDT 2007
>
> >
> > However, as a comparison, the MS.NET <http://MS.NET>
> <http://MS.NET> implementation
> > completes 15 loops of the benchmark in a mere 6718ms ;)
> >
>
On this point, I suspect AOT compilation of the .Net system assemblies
may be making the difference. The AOT might be able to recognize
certain patterns are equivalent to rot instructions and replace a bunch
of shifts and masks with a set of unsigned rots.
A 32bit reorder is rot 8 on each of the 16 bit sections and a rot 16 on
the full variable. I think that can be done in 3 clocks on x86 - but my
assembly is rusty.
--Gareth
More information about the Mono-devel-list
mailing list