Hi Matthew,

Thanks for your patience. The OData extension was initially designed for the 
Restlet edition for JSE/JEE/GAE and we haven't done any special optimization 
yet to run on a more limited Android device. 

One thing you should really do is to replace the internal HTTP connector with 
the one provided on Android based on Apache HTTP Client to see if you get 
better GC behavior. The internal connector needs more optimizations to reduce 
thread/memory usage (work going on based on NIO).

See instructions here to register this connector here:
http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/266-restlet.html

Also, the current Android implementation doesn't support local change tracking, 
an advanced feature of OData/WCF which is planned for later only, so the when 
you get your iterator, it is already backed by an array list fully available 
locally. You can always use OData pagination to reduce the size of this array.

Regarding the INFO traces in the log, we just need to set buffer sizes 
explicitly as preferred by Android/Dalvik VM. I've entered a bug report:

"Android complains about buffer sizes not explicit"
http://restlet.tigris.org/issues/show_bug.cgi?id=1112

Also, looking at the log, it seems that the HTTP Client is started several 
times ("Starting the default HTTP client"). This isn't normal and might cause 
extra resource consumption/GC work. I've created another report:

"OData seems to create several Client instances"
http://restlet.tigris.org/issues/show_bug.cgi?id=1113

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
Noelios Technologies ~ http://www.noelios.com


-----Message d'origine-----
De : Matthew drooker [mailto:[email protected]] 
Envoyé : mardi 11 mai 2010 02:05
À : [email protected]
Objet : RE: Re: Android and WCF DataService

We may have to drop back and remove RestLet if we cannot get the high GC and 
"chatty" call count figured out.  

Any Luck?

Matthew

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2607173

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2611235

Reply via email to