Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Make GeckoElement::has_class faster. #19787

Merged
merged 2 commits into from Jan 16, 2018

Conversation

emilio
Copy link
Member

@emilio emilio commented Jan 16, 2018

By force-inlining the fast path, and pulling out a branch that rust didn't manage to pull out.


This change is Reviewable

I've verified that current libxul, at least for Linux, doesn't manage to pull
the branch out.
@highfive
Copy link

Heads up! This PR modifies the following files:

  • @bholley: components/style/gecko/snapshot_helpers.rs, components/style/gecko/wrapper.rs
  • @canaltinova: components/style/gecko/snapshot_helpers.rs, components/style/gecko/wrapper.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 16, 2018
@highfive
Copy link

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!

@emilio
Copy link
Member Author

emilio commented Jan 16, 2018

r? @upsuper or @bholley

@highfive highfive assigned upsuper and unassigned pcwalton Jan 16, 2018
@bholley
Copy link
Contributor

bholley commented Jan 16, 2018

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit c44e038 has been approved by bholley

@highfive highfive assigned bholley and unassigned upsuper Jan 16, 2018
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jan 16, 2018
@bors-servo
Copy link
Contributor

⌛ Testing commit c44e038 with merge 4004efc...

bors-servo pushed a commit that referenced this pull request Jan 16, 2018
style: Make GeckoElement::has_class faster.

By force-inlining the fast path, and pulling out a branch that rust didn't manage to pull out.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19787)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - mac-dev-unit

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jan 16, 2018
It's easier, and probably faster, than trying to inline the function call to
Gecko.

This symbol is in libxul.so as of right now.
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Jan 16, 2018
@emilio
Copy link
Member Author

emilio commented Jan 16, 2018

@bors-servo r=bholley

  • Whoops, only ran ./mach cargo check of course.

@bors-servo
Copy link
Contributor

📌 Commit e55bb3e has been approved by bholley

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jan 16, 2018
@bors-servo
Copy link
Contributor

⌛ Testing commit e55bb3e with merge 1ac35dc...

bors-servo pushed a commit that referenced this pull request Jan 16, 2018
style: Make GeckoElement::has_class faster.

By force-inlining the fast path, and pulling out a branch that rust didn't manage to pull out.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19787)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: bholley
Pushing 1ac35dc to master...

@bors-servo bors-servo merged commit e55bb3e into servo:master Jan 16, 2018
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 16, 2018
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.

None yet

6 participants