[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-osx
Subject:    Re: [Mono-osx] Fast .NET<-->objc bridge. How to contribute?
From:       Jesse Jones <jesjones () mindspring ! com>
Date:       2008-10-30 19:07:42
Message-ID: 633CB720-8D7A-4321-BD4A-716DF099E8F5 () mindspring ! com
[Download RAW message or body]


On Oct 30, 2008, at 11:02 AM, Grishul Eugeny wrote:

>
> 2Geoff Norton: Are you still reading sources? What about replacing  
> Cocoa#
> with this one?
>
> Recently I added selectors caching support for generated proxies, so  
> library
> now was overwhelming =)
> See updated perftest:
>
> var instance = NSString.stringWithString_( "some string to test" );
> instance.stringByAppendingString_( "something" );
>
> ObjcMapper results:
> 00:00:00.2879690
> 00:00:00.2878390
> 00:00:00.2875700
>
> Cocoa# results:
> 00:00:05.1938330
> 00:00:05.2703830
> 00:00:05.4167230
>
> monobjc results:
> 00:00:05.2928810
> 00:00:05.2914460
> 00:00:05.2801190
>
> objc3-sharp results:
> 00:00:02.2013460
> 00:00:02.2027630
> 00:00:02.1879220

Impressive speed Grishul. I looked at optimizing call times in mobjc  
(which replaces objc3-sharp), by for example adding a fast path which  
bypasses a lot of the managed code, but the speed increases were  
negligible. So, as far as I can tell the slow down in mobjc is from  
libffi and return value marshaling.

   -- Jesse
_______________________________________________
Mono-osx mailing list
Mono-osx@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-osx
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic