Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider improving performance of sending data via Transferable Objects #97

Open
danielwiehl opened this issue Oct 18, 2021 · 3 comments

Comments

@danielwiehl
Copy link
Collaborator

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
Copy link
Contributor

ova2 commented Jul 1, 2023

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:

  • JSON files for element definitions (elements are described declarative in the Rendering Engine)
  • Fonts (there are two files per Font: JSON with metadata and a special PNG)
  • Images / Icons / Sprites (als WebGL textures)

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 k-genov added this to the 2024-xx milestone Jul 3, 2023
@k-genov
Copy link
Contributor

k-genov commented Jul 3, 2023

Hi @ova2,

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

@ova2
Copy link
Contributor

ova2 commented Jul 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants