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: Rework how precomputed pseudo stuff works, to avoid malloc/free churn. #17992

Merged
merged 2 commits into from Aug 8, 2017

Conversation

emilio
Copy link
Member

@emilio emilio commented Aug 7, 2017

This showed up in a few profiles, and was an easy improvement.


This change is Reviewable

@highfive
Copy link

highfive commented Aug 7, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/selector_map.rs, components/style/stylist.rs
  • @canaltinova: components/style/selector_map.rs, components/style/stylist.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 7, 2017
@highfive
Copy link

highfive commented Aug 7, 2017

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 Aug 7, 2017

r? @heycam

@highfive highfive assigned heycam and unassigned metajack Aug 7, 2017
@emilio
Copy link
Member Author

emilio commented Aug 7, 2017

(or @bholley)

@emilio emilio force-pushed the rework-precomputed-pseudo branch 4 times, most recently from d15ef6b to 70dfaf8 Compare August 7, 2017 17:38
continue;
}

self.precomputed_pseudo_element_decls
Copy link
Contributor

Choose a reason for hiding this comment

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

(It would be nice if we could handle the precomputed case separately, above the match, so we can can all of the normal rule collection bits together, but it's not a big deal.)

@heycam
Copy link
Contributor

heycam commented Aug 8, 2017

@bors-servo delegate+

Much more sensible, thanks. :-)

@bors-servo
Copy link
Contributor

✌️ @emilio can now approve this pull request

…e churn.

This showed up in a few profiles, and was an easy improvement.

MozReview-Commit-ID: HVqATaSB2Ak
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
@emilio
Copy link
Member Author

emilio commented Aug 8, 2017

Yup, agreed, done :)

@bors-servo r=heycam

@bors-servo
Copy link
Contributor

📌 Commit 121e2d5 has been approved by heycam

@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 Aug 8, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit 121e2d5 with merge 69f02f4...

bors-servo pushed a commit that referenced this pull request Aug 8, 2017
style: Rework how precomputed pseudo stuff works, to avoid malloc/free churn.

This showed up in a few profiles, and was an easy improvement.

<!-- 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/17992)
<!-- 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: heycam
Pushing 69f02f4 to master...

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

5 participants