Skip to content

Don't heap-allocate a tokenizer for top-level parsing. #124

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

Merged
merged 1 commit into from
Mar 3, 2017

Conversation

emilio
Copy link
Member

@emilio emilio commented Mar 3, 2017

r? @SimonSapin


This change is Reviewable

@SimonSapin
Copy link
Member

IIRC when I wrote this I did not expect creating new parsers to be hot. Is it for CSSOM setters?

@SimonSapin
Copy link
Member

Ah you already replied yes on IRC :)

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 13662ef has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⌛ Testing commit 13662ef with merge e3697cb...

bors-servo pushed a commit that referenced this pull request Mar 3, 2017
Don't heap-allocate a tokenizer for top-level parsing.

r? @SimonSapin

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

emilio commented Mar 3, 2017

@bors-servo r-

I'll update the MaybeOwned docs.

This matters when parsing single property declarations, see bug 1344131[1].

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1344131
@emilio emilio force-pushed the unbox-tokenizer branch from 13662ef to 16dfdeb Compare March 3, 2017 17:56
@SimonSapin
Copy link
Member

(MaybeOwned is not public, but yeah)

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 16dfdeb has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⌛ Testing commit 16dfdeb with merge 6fe264e...

bors-servo pushed a commit that referenced this pull request Mar 3, 2017
Don't heap-allocate a tokenizer for top-level parsing.

r? @SimonSapin

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

☀️ Test successful - status-travis
Approved by: SimonSapin
Pushing 6fe264e to master...

@bors-servo bors-servo merged commit 16dfdeb into servo:master Mar 3, 2017
@emilio emilio deleted the unbox-tokenizer branch March 3, 2017 18:05
emilio added a commit to emilio/servo that referenced this pull request Mar 6, 2017
bors-servo pushed a commit to servo/servo that referenced this pull request Mar 6, 2017
Update cssparser to get perf improvements for CSSOM setters.

In particular, it it includes servo/rust-cssparser#124

<!-- 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/15830)
<!-- Reviewable:end -->
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Mar 7, 2017
…SSOM setters (from emilio:cssparserup); r=KiChjang

In particular, it it includes servo/rust-cssparser#124

Source-Repo: https://github.com/servo/servo
Source-Revision: c62973b77b6ac74c0daf11b1f4c18b9dd64ae400

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 42809d20c09bd2bbf5eaac50ab7ddbfcef01a49c
Manishearth pushed a commit to Manishearth/gecko-dev that referenced this pull request Mar 13, 2017
…SSOM setters (from emilio:cssparserup); r=KiChjang

In particular, it it includes servo/rust-cssparser#124

Source-Repo: https://github.com/servo/servo
Source-Revision: c62973b77b6ac74c0daf11b1f4c18b9dd64ae400
JerryShih pushed a commit to JerryShih/gecko-dev that referenced this pull request Mar 13, 2017
…SSOM setters (from emilio:cssparserup); r=KiChjang

In particular, it it includes servo/rust-cssparser#124

Source-Repo: https://github.com/servo/servo
Source-Revision: c62973b77b6ac74c0daf11b1f4c18b9dd64ae400
clementmiao pushed a commit to clementmiao/servo that referenced this pull request Apr 7, 2017
@SimonSapin SimonSapin mentioned this pull request Jun 25, 2017
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 1, 2019
…SSOM setters (from emilio:cssparserup); r=KiChjang

In particular, it it includes servo/rust-cssparser#124

Source-Repo: https://github.com/servo/servo
Source-Revision: c62973b77b6ac74c0daf11b1f4c18b9dd64ae400

UltraBlame original commit: deafdcdf32a52d0dfb81af6c34110fd894764d8f
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…SSOM setters (from emilio:cssparserup); r=KiChjang

In particular, it it includes servo/rust-cssparser#124

Source-Repo: https://github.com/servo/servo
Source-Revision: c62973b77b6ac74c0daf11b1f4c18b9dd64ae400

UltraBlame original commit: deafdcdf32a52d0dfb81af6c34110fd894764d8f
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…SSOM setters (from emilio:cssparserup); r=KiChjang

In particular, it it includes servo/rust-cssparser#124

Source-Repo: https://github.com/servo/servo
Source-Revision: c62973b77b6ac74c0daf11b1f4c18b9dd64ae400

UltraBlame original commit: deafdcdf32a52d0dfb81af6c34110fd894764d8f
bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
…SSOM setters (from emilio:cssparserup); r=KiChjang

In particular, it it includes servo/rust-cssparser#124

Source-Repo: https://github.com/servo/servo
Source-Revision: c62973b77b6ac74c0daf11b1f4c18b9dd64ae400
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.

3 participants