Binder IPC is not intended for several megabytes of data transport.  You
should keep a single call well under a megabyte, and hopefully more in the
realm of 100K.

If you are sending more data than that, you should do it through an fd or
shared memory area; it is easy to transport such objects through a Binder
IPC to do the initial connection.

On Sat, Dec 4, 2010 at 5:53 AM, Sebastian <
[email protected]> wrote:

> Hello,
>
> currently I'm using AIDL to send various amounts of data from one
> process to another.
> The amount of data does vary between some bytes and up to several
> megabytes (stream).
>
> What is the optimal/maximum size for *one* pass of data through an
> AIDL call?
> And which size should be used, keeping memory usage and speed (time
> needed for each AIDL call) in mind?
>
> Regards
> Sebastian
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to