Skip to content

[Wasm] Improve arrange and transform performance - #594

Merged
jeromelaban merged 4 commits into
masterfrom
dev/jela/arrange-perf
Feb 14, 2019
Merged

jeromelaban merged 4 commits into
masterfrom
dev/jela/arrange-perf

Conversation

@jeromelaban

@jeromelaban jeromelaban commented Feb 13, 2019 •

Copy link
Copy Markdown
Member

PR Type

What kind of change does this PR introduce?

  • Performance

What is the current behavior?

The current arrange implementation uses a lot of string formatting to send data to Javascript.

What is the new behavior?

The new implementation uses TSBindings to improve the performance, and here are some results for 1000 arrange calls, using the interpreter:

  • Before 590ms
  • After, 360ms

PR Checklist

Please check if your PR fulfills the following requirements:

- Transform SetStyleArrange to ArrangeElementNative using TS Bindings
- Use SetStyleDouble for opacity
Comment thread src/Uno.UI.Wasm/ts/WindowManager.ts Resolved
Comment thread src/Uno.UI/UI/Xaml/UIElement.wasm.cs Resolved
@jeromelaban
jeromelaban force-pushed the dev/jela/arrange-perf branch from 2656d56 to 3c5345e Compare February 14, 2019 03:16
@jeromelaban jeromelaban changed the title [Wasm] Improve arrange performance [Wasm] Improve arrange and transform performance Feb 14, 2019
@jeromelaban
jeromelaban merged commit d494389 into master Feb 14, 2019
@jeromelaban
jeromelaban deleted the dev/jela/arrange-perf branch February 14, 2019 13:28
jeromelaban added a commit that referenced this pull request Feb 14, 2019
Inner rectange SVG is now clipped properly since #594, but the rectangle needs a larger clipping area.
jeromelaban added a commit that referenced this pull request Feb 14, 2019
Inner rectange SVG is now clipped properly since #594, but the rectangle needs a larger clipping area.
@jeromelaban jeromelaban mentioned this pull request Feb 14, 2019
2 of 6 tasks
jeromelaban added a commit that referenced this pull request Feb 15, 2019
Inner rectange SVG is now clipped properly since #594, but the rectangle needs a larger clipping area.
)
: "";

SetStyles(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using this won't remove the class uno-unarranged anymore... leading to showing nothing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what the true below is for.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants