Re: [mono-android] Copying data between Dalvik and Mono... major slowdown.

2013-01-09 Thread Willem Meints
2013 14:51 Aan: Discussions related to Mono for Android Onderwerp: Re: [mono-android] Copying data between Dalvik and Mono... major slowdown. I had a feeling that was why. Anyway I wrote my own implementation in C# using Mono.Data.Sqlite with my own version of the ContentValues class. It now

Re: [mono-android] Copying data between Dalvik and Mono... major slowdown.

2013-01-07 Thread Jeremy A. Kolb - ARA/NED
] On Behalf Of Jonathan Pryor Sent: Sunday, January 06, 2013 10:34 PM To: Discussions related to Mono for Android Subject: Re: [mono-android] Copying data between Dalvik and Mono... major slowdown. On Jan 3, 2013, at 4:32 PM, Jeremy A. Kolb - ARA/NED wrote: > Furthermore, In: > >

Re: [mono-android] Copying data between Dalvik and Mono... major slowdown.

2013-01-07 Thread Willem Meints
47 506 037 -Oorspronkelijk bericht- Van: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] Namens Jonathan Pryor Verzonden: maandag 7 januari 2013 04:34 Aan: Discussions related to Mono for Android Onderwerp: Re: [mono-android] Copying data between Dalvik and Mono... major

Re: [mono-android] Copying data between Dalvik and Mono... major slowdown.

2013-01-06 Thread Jonathan Pryor
On Jan 3, 2013, at 4:32 PM, Jeremy A. Kolb - ARA/NED wrote: > Furthermore, In: > > [Register("bulkInsert", > "(Landroid/net/Uri;[Landroid/content/ContentValues;)I", "")] > public int BulkInsert(Android.Net.Uri url, ContentValues[] values) > { > IntPtr num1 = JNIEnv.NewArray(va

Re: [mono-android] Copying data between Dalvik and Mono... major slowdown.

2013-01-03 Thread Tom Opgenorth
Given the large volume of data involved, you might be better off just using ADO.NET and not a ContentProvider. Is that an option for you? On Thu, Jan 3, 2013 at 2:18 PM, Jeremy A. Kolb - ARA/NED wrote: > I’m getting killed with bulk inserts via ContentResolver because of the > marshaling of C

Re: [mono-android] Copying data between Dalvik and Mono... major slowdown.

2013-01-03 Thread Jeremy A. Kolb - ARA/NED
the function call? values shouldn't have changed. url certainly doesn't get the same treatment. Jeremy From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jeremy A. Kolb - ARA/NED Sent: Thursday, January 03, 2013 4:18 PM To: monodroid@l

[mono-android] Copying data between Dalvik and Mono... major slowdown.

2013-01-03 Thread Jeremy A. Kolb - ARA/NED
I'm getting killed with bulk inserts via ContentResolver because of the marshaling of ContentValues[] between C# and Android right before it calls into my ContentProvider (C# again). It looks like that must be two copies. I have large arrays (a couple of thousands of elements). Is there any w