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
Preprocess sitelet runtime metadata #664
Comments
This could be implemented so that the Also the timestamp of the |
Unpack functionality needs to be moved to Related concern:
|
Related ticket that can be implemented on top of this: #863 with a slight modification: metadata in dll does not necessarily need to contain the Sitelet value location, current reflection-based lookup can be moved to unpack (and stored in |
Going with simplest implementations: pre-process and simplify metadata for sitelets during compilation for WebSharper 5.0. Also pass metadata to Offline sitelets generation, do not deserialize again, wasting time. |
* WIP separate metadata for web project runtime * #664 add runtime.meta for Sitelets, speeding up initialization * keep supporting WebSharperSharedMetadata=None runtime setting
@granicz before: after: However, sadly this was bc most dependency graph information was dropped by mistake. A quick fix to this increases init time again, but still way less than original: with dep graph fixed: more optimizations needed to achieve better time, there are 2 main paths:
|
Sitelet runtime metadata creation/use is included in WebSharper 5.0 |
On unpacking ws web projects, it would be possible to also union all metadata, trim them (remove expressions, not needed for runtime - except try.ws, so look at web.config setting) and save it in a separate binary to be loaded by runtime.
Advantage:
Disadvantage:
Also
WebSharper.Owin
is now looking at all bin dlls, this should not be necessary, for unpacking now in WS4 also assumes that every WS dependency is referenced.The text was updated successfully, but these errors were encountered: