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

Metadata format improvements #580

Open
Jand42 opened this issue Jul 27, 2016 · 0 comments
Open

Metadata format improvements #580

Jand42 opened this issue Jul 27, 2016 · 0 comments

Comments

@Jand42
Copy link
Member

Jand42 commented Jul 27, 2016

Currently every JS-translated assembly content is encoded to a single binary resource which is deserialized in full for both compilation and sitelets runtime.

Multiple approaches for improving compiler and runtime performance is possible:

  • Separate assembly contents info, expressions, and code dependency graph. Compilation should not need dependency graph of other assemblies, sitelets/rpc runtime should not need expressions, contents info used by both
  • Deserialize expressions lazily (keep them as "pointers" to a byte array otherwise). Compiler need expressions for inline nodes only, packager+writer need expressions for non-inline nodes only. So a further split is possible
  • Shrink code dependency graphs using strongly-connected component search. Shrink it further for sitelets runtime where only the resource nodes are relevant targets
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

1 participant