Skip to content

Conversation

@hjohn
Copy link
Collaborator

@hjohn hjohn commented Mar 29, 2023

A 1200 Node application sees a 2/3rds reduction of ListChangeBuilder's created. Every Node for example has an ObservableList for style classes, and every Parent has one for stylesheets, which rarely if ever change.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8304960: ObservableListBase should defer constructing ListChangeBuilder

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1075/head:pull/1075
$ git checkout pull/1075

Update a local copy of the PR:
$ git checkout pull/1075
$ git pull https://git.openjdk.org/jfx.git pull/1075/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1075

View PR using the GUI difftool:
$ git pr show -t 1075

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1075.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 29, 2023

👋 Welcome back jhendrikx! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Ready for review label Mar 29, 2023
@mlbridge
Copy link

mlbridge bot commented Mar 29, 2023

Webrevs

Copy link
Contributor

@andy-goryachev-oracle andy-goryachev-oracle left a comment

Choose a reason for hiding this comment

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

a good idea!

@kevinrushforth
Copy link
Member

/reviewers 2

@openjdk
Copy link

openjdk bot commented Mar 29, 2023

@kevinrushforth
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

@andy-goryachev-oracle
Copy link
Contributor

the only place where this code might fail is when it gets accessed from multiple threads.

@hjohn
Copy link
Collaborator Author

hjohn commented Mar 29, 2023

the only place where this code might fail is when it gets accessed from multiple threads.

ListChangeBuilder itself is not thread safe :)

@kevinrushforth kevinrushforth self-requested a review March 29, 2023 18:02
Copy link
Member

@Maran23 Maran23 left a comment

Choose a reason for hiding this comment

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

Looks good to me too and makes sense.
This also aligns well with the listenerHelper, which is also created when needed.

Copy link
Collaborator

@mstr2 mstr2 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Member

@kevinrushforth kevinrushforth left a comment

Choose a reason for hiding this comment

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

Looks good.

@openjdk
Copy link

openjdk bot commented Mar 30, 2023

@hjohn This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8304960: ObservableListBase should defer constructing ListChangeBuilder

Reviewed-by: angorya, mhanl, mstrauss, kcr

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 1 new commit pushed to the master branch:

  • 2a5bf46: 8304924: [testbug] Skip failing tests on Linux

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Ready to be integrated label Mar 30, 2023
@hjohn
Copy link
Collaborator Author

hjohn commented Mar 30, 2023

/integrate

@openjdk
Copy link

openjdk bot commented Mar 30, 2023

Going to push as commit c23d067.
Since your change was applied there has been 1 commit pushed to the master branch:

  • 2a5bf46: 8304924: [testbug] Skip failing tests on Linux

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Mar 30, 2023
@openjdk openjdk bot closed this Mar 30, 2023
@openjdk openjdk bot removed ready Ready to be integrated rfr Ready for review labels Mar 30, 2023
@openjdk
Copy link

openjdk bot commented Mar 30, 2023

@hjohn Pushed as commit c23d067.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

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

Labels

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

5 participants