Self-extracting WebAssembly binaries #2428
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Moves wasm loading for
@finos/perspective
and@finos/perspective-viewer
packages to a new Rust-based self-extracting binary. Improves Perspective asset load and compilation performance by 5x.Old webassembly load + first render performance profile:
![Screenshot 2023-11-12 at 2 16 29 PM](https://private-user-images.githubusercontent.com/60666/282320657-b2f3a8ad-4506-441d-a277-73a343ef281d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNjQ1MTgsIm5iZiI6MTcyNTA2NDIxOCwicGF0aCI6Ii82MDY2Ni8yODIzMjA2NTctYjJmM2E4YWQtNDUwNi00NDFkLWEyNzctNzNhMzQzZWYyODFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMxVDAwMzAxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0Yzc2NGJhMjk3NjM4MDQ3ZjFiMWQ5NjA5N2JlYWM0NWMxNjE5MDJmOWJiYWM0NDhkNWRiNmQ4MDNiOTQxYWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-K9T8OfYJliaLucnbLGBGSlP6Ot1Co3haUbqXvzlgfs)
New:
![Screenshot 2023-11-12 at 2 17 22 PM](https://private-user-images.githubusercontent.com/60666/282320645-2b234d5b-720c-41b4-b48e-6a5ab831f343.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNjQ1MTgsIm5iZiI6MTcyNTA2NDIxOCwicGF0aCI6Ii82MDY2Ni8yODIzMjA2NDUtMmIyMzRkNWItNzIwYy00MWI0LWI0OGUtNmE1YWI4MzFmMzQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMxVDAwMzAxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZmMDVjNzEwZWU1ZmMxYTllMzg4ZmIxMjdkMTEwMTE4ZTk5M2E0NTE5NjhhN2ZkZmY3YmRlYTA2OWI1NmZhMmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.oNd0xKiz1fe9k8jzURvs-0TuY81kLDj0OTew7-QOTtE)