unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.9k stars 720 forks source link

[Wasm] Improve `TextBlock` fast path performance with style batching #2196

Open jeromelaban opened 4 years ago

jeromelaban commented 4 years ago

What would you like to be added:

Following https://github.com/unoplatform/uno/pull/2195, the updates made are still making many JS calls to update a TextBlock properties to the corresponding HTML element.

Style updates should be batched as a single JS optimized call.

For which Platform:

Anything else we need to know?

MartinZikmund commented 1 year ago

We could create a style batching via a disposable block - e.g. all style updates will be stashed until the disposable is disposed, where they will be sent as a single batch