[Fiware-lab-help] pushEvent and registerCallback: passing around objects?

Manuel Warum Manuel.Warum.fl at ait.ac.at
Thu Nov 28 14:56:06 CET 2013


Hi,

It is my understanding that the Wirecloud.wiring.pushEvent and Wirecloud.wiring.registerCallback work with data that is passed around as strings. (I could be wrong here; if so, disregard the rest of the email :))

In our case, we're pushing JavaScript objects around; sometimes they are relatively deep or consist of rather long object arrays. We're worried that JSON.stringify and JSON.parse introduce a noticable performance hit.
While we don't expect this to cause too much trouble in the near future, however the memory and computational requirements might worry some of our end users, in particular those stuck with less powerful devices. As data is stringified on one end and parsed on the other, would it be possible to allow JavaScript objects to be passed around directly instead of converting from/to strings first?

Kind regards,
Manuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20131128/790f8ff6/attachment.html>


More information about the Fiware-lab-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy