Re: Idling app has ~2MB of garbage collected every 30 seconds

2012-06-21 Thread Ioannis Mavroukakis
Yes it could but you would you not end up having the overhead of context switching from the thrown thread interrupts? On a low resource device this can't be the best of situations I imagine. On 21 Jun 2012, at 00:16, Yan Zhou yanzhou_2...@yahoo.com wrote: Any objections if the following is

Restlet Method Call with multiple parameters?

2012-06-21 Thread Philipp E.
I've been playing around with Restlet(2.1 rc5) in the last week to get an Android Client to communicate with a Restlet server using Java Objects After some quirks I can now send and receive POJO objects successfully, but it only works if I limit the number of parameters to one. When I try so

Re: Restlet Method Call with multiple parameters?

2012-06-21 Thread Tim Peierls
Why do you explicitly clear the list of registered converters and explicitly add the Jackson and XML converters? On Thu, Jun 21, 2012 at 8:30 AM, Philipp E. ftw4r...@gmail.com wrote: I've been playing around with Restlet(2.1 rc5) in the last week to get an Android Client to communicate with a

RE: Re: Restlet Method Call with multiple parameters?

2012-06-21 Thread Philipp E.
Hello Tim, this is a workaround for Android, information about it is available here: http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/266-restlet.html Why do you explicitly clear the list of registered converters and explicitly add the Jackson and XML converters? On Thu, Jun 21,

Re: Re: Restlet Method Call with multiple parameters?

2012-06-21 Thread Tim Peierls
Ah, makes sense. But why would you expect to be able to send two parameters in a POST? --tim On Thu, Jun 21, 2012 at 11:32 AM, Philipp E. ftw4r...@gmail.com wrote: Hello Tim, this is a workaround for Android, information about it is available here:

Using Restlet with Django

2012-06-21 Thread Gautam Bajaj
Hi all, I am working on doing a HTTP POST using android java restlet plugin into a url of Django server. However, the Django is coded in such a way that it return the cause of error (message) to client side, and prints the status of error message on Django log. for example, if I do HTTP POST

RE: Idling app has ~2MB of garbage collected every 30 seconds

2012-06-21 Thread Jerome Louvel
Hi Yan, Ioannis, Thanks for pointing your finger on this hot spot! The GC overhead is clearly an issue that needs to be fixed and definitely worth a ticket in GitHub. A first and easy solution is to replace those two iterator objects with regular loops to prevent unnecessary garbage collection.