Ar 14/12/2007 am 19:58, ysgrifennodd Ivan Krstić:
> On Dec 14, 2007, at 7:03 AM, Dafydd Harries wrote:
> > contents = file(path).read()
> > dbus.ByteArray(contents)
> 
> 
> How is that possibly supposed to scale?

My intention was to illustrate how to use byte arrays. I did not mean to imply
any guarantee of scalability.

D-Bus, and D-Bus tubes in particular, are not suited to very large messages.
If you need to transport large files, I suggest using a stream tube instead.
Failing that, splitting the file into pieces before transporting it over D-Bus
would be prudent.

At any rate, I've already discussed this with Erik, and I'm sure knows what
he's doing.

-- 
Dafydd
_______________________________________________
Sugar mailing list
[email protected]
http://lists.laptop.org/listinfo/sugar

Reply via email to