SchweizerischeBundesbahnen / scion-microfrontend-platform

SCION Microfrontend Platform is a TypeScript-based open-source library that helps to implement a microfrontend architecture using iframes.
Eclipse Public License 2.0
68 stars 9 forks source link

Consider improving performance of sending data via Transferable Objects #97

Open danielwiehl opened 3 years ago

danielwiehl commented 3 years ago

Is your feature request related to a problem? Please describe.

SCION Microfrontend Platform exchanges data (messages, intents) via the window.postMessage mechanism, which uses the structured cloning algorithm to transfer data. Since the data is copied, this can lead to noticeable performance degradation when transferring large amounts of data.

Describe the solution you'd like

Consider transferring data using Transferable Objects.

Additional context

ova2 commented 1 year ago

I've just wanted to ask if Transferable Objects are supported and found this issue :-) I'm interested in ArrayBuffer and ImageBitmap especially because in the near feature I plan to implement a micro app for shared resources:

This will allow to share commonly used ressources between multiple instances of certain (real-time) GUI type, and not only this, without to load them multiple times.

k-genov commented 1 year ago

Hi @ova2,

Thanks for your comment and upvoting! We are prioritizing this issue in our roadmap for 2024.

ova2 commented 1 year ago

Hi @ova2,

Thanks for your comment and upvoting! We are prioritizing this issue in our roadmap for 2024.

2024 sounds good. Looking forward to this feature.