Hi,

On Tue, Apr 3, 2012 at 4:05 PM, NC Software <[email protected]> wrote:

> Hello,
>
> I see some developers that have come from an Xcode background use NS types
> in MonoTouch instead of .NET types.  For example, using NSString instead of
> String.  Is there any impact to doing this? Pro's, Con's, should I raise
> this as a concern or is it negligible to the performance and stability
> (i.e.
> GC) of the app?
>

Using NS* types when it's not needed does have an impact on the app, in
general the equivalent .NET type is faster (the switch between running
managed code and native code is somewhat expensive, and it's also more work
for the GC due to the additional complexities of dealing with ObjC types
since they're refcounted).

If it's negligible or not depends on your app and how much you use the NS*
types. Unless it's a game or otherwise a computation or memory sensitive
app, I don't think you'll be able to measure any significant difference.

Rolf
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to