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

Remove a memory allocation (`iter.collect::<Vec<_>>()`) in `cascade()` #16239

Merged
merged 1 commit into from Apr 3, 2017

Conversation

@SimonSapin
Copy link
Member

SimonSapin commented Apr 3, 2017

This vector was there to pre-acquire locks and give all declarations the same lifetime (which is necessary for custom properties cascading).

#16014 introduce a guard to a shared pre-acquired lock, making this vector unnecessary.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

This vector was there to pre-acquire locks and give all declarations
the same lifetime (which is necessary for custom properties cascading).

#16014 introduce a guard to a shared
pre-acquired lock, making this vector unnecessary.
@highfive
Copy link

highfive commented Apr 3, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/properties.mako.rs
  • @emilio: components/style/properties/properties.mako.rs
@highfive
Copy link

highfive commented Apr 3, 2017

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!
@SimonSapin
Copy link
Member Author

SimonSapin commented Apr 3, 2017

@highfive highfive assigned bholley and unassigned glennw Apr 3, 2017
@emilio
Copy link
Member

emilio commented Apr 3, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Apr 3, 2017

📌 Commit 510bcc6 has been approved by emilio

@highfive highfive assigned emilio and unassigned bholley Apr 3, 2017
@bors-servo
Copy link
Contributor

bors-servo commented Apr 3, 2017

Testing commit 510bcc6 with merge a5a5abd...

bors-servo added a commit that referenced this pull request Apr 3, 2017
Remove a memory allocation (`iter.collect::<Vec<_>>()`) in `cascade()`

This vector was there to pre-acquire locks and give all declarations the same lifetime (which is necessary for custom properties cascading).

#16014 introduce a guard to a shared pre-acquired lock, making this vector unnecessary.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/16239)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Apr 3, 2017

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: emilio
Pushing a5a5abd to master...

@bors-servo bors-servo merged commit 510bcc6 into master Apr 3, 2017
4 checks passed
4 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
dependency-ci Dependencies checked
Details
homu Test successful
Details
@SimonSapin SimonSapin deleted the cascade-collect branch Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.