KEMBAR78
perf: apply layout/layer bound where possible by stephanwlee · Pull Request #3642 · tensorflow/tensorboard · GitHub
Skip to content

Conversation

@stephanwlee
Copy link
Contributor

@stephanwlee stephanwlee commented May 16, 2020

This is a CSS/layout optimization for areas that renders a lot of DOM
Nodes including the scrollable area.

  • will-change: transform <- hints browser to put the DOM in different
    GPu layer
  • contain <- hints browser that certain operations can be done by
    reasoning children only. For instance, when size is present, browser
    can calculate size/bounds by only reasoning with the child nodes.
    For more information, refer to the doc.

This is a CSS/layout optimization for areas that renders a lot of DOM
Nodes including the scrollable area.

- will-change: transform <- hints browser to put the DOM in different
  GPu layer
- contain <- hints browser that certain operations can be done by
  reasoning children only. For instance, when `size` is present, browser
  can calculate size/bounds by only reasoning with the child nodes.
@stephanwlee stephanwlee requested a review from nfelt May 16, 2020 03:15
@stephanwlee stephanwlee merged commit 694c47a into tensorflow:master May 18, 2020
@stephanwlee stephanwlee deleted the layout branch May 18, 2020 18:46
caisq pushed a commit to caisq/tensorboard that referenced this pull request May 19, 2020
This is a CSS/layout optimization for areas that renders a lot of DOM
Nodes including the scrollable area.

- `will-change`: transform <- hints browser to put the DOM in different
  GPU layer
- `contain` <- hints browser that certain operations can be done by
  reasoning children only. For instance, when `size` is present, browser
  can calculate size/bounds by only reasoning with the child nodes.
  For more information, refer to the [doc](https://developer.mozilla.org/en-US/docs/Web/CSS/contain).
caisq pushed a commit that referenced this pull request May 27, 2020
This is a CSS/layout optimization for areas that renders a lot of DOM
Nodes including the scrollable area.

- `will-change`: transform <- hints browser to put the DOM in different
  GPU layer
- `contain` <- hints browser that certain operations can be done by
  reasoning children only. For instance, when `size` is present, browser
  can calculate size/bounds by only reasoning with the child nodes.
  For more information, refer to the [doc](https://developer.mozilla.org/en-US/docs/Web/CSS/contain).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants