GNOME Bugzilla – Bug 688765
Use GBytes for byte array GVariants
Last modified: 2012-11-21 21:49:50 UTC
Gjs has now support for dealing transparently with GBytes, and this allows us to avoid a copy in the common case of carrying a blob around (such as when receiving an image over DBus)
Created attachment 229520 [details] [review] Use GBytes for byte array GVariants
Review of attachment 229520 [details] [review]: Ouch...in the old ay path we didn't even use byteArray, but a real JS array of doubles? That's a lot of memory. Anyways, looks good to me!
Attachment 229520 [details] pushed as 8120cb5 - Use GBytes for byte array GVariants