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

Use the whitespace flag in each glyph instead of going to the string for whitespace stripping. #8994

Closed
wants to merge 1 commit into from

Conversation

@pcwalton
Copy link
Contributor

pcwalton commented Dec 16, 2015

str::slice_chars was O(n) and #2 in the profile.

r? @mbrubeck

Review on Reviewable

@highfive
Copy link

highfive commented Dec 16, 2015

warning Warning warning

  • These commits modify layout code, but no reftests are modified. Please consider adding a reftest!
@mbrubeck mbrubeck self-assigned this Dec 16, 2015
@Ms2ger
Copy link
Contributor

Ms2ger commented Dec 16, 2015

Review status: 0 of 3 files reviewed at latest revision, 3 unresolved discussions.


components/gfx/text/text_run.rs, line 146 [r1] (raw file):
Or self.prev_glyph_run.take()


components/gfx/text/text_run.rs, line 176 [r1] (raw file):
take()


components/gfx/text/text_run.rs, line 181 [r1] (raw file):
Rm


Comments from the review on Reviewable.io

@pcwalton pcwalton force-pushed the pcwalton:whitespace-stripping-optzns branch from 6614aef to ee7f2de Dec 16, 2015
@pcwalton
Copy link
Contributor Author

pcwalton commented Dec 16, 2015

Comments addressed.

whitespace stripping.

`str::slice_chars` was O(n) and #2 in the profile.
@mbrubeck
Copy link
Contributor

mbrubeck commented Dec 16, 2015

Reviewed 2 of 3 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 3 unresolved discussions.


Comments from the review on Reviewable.io

@mbrubeck
Copy link
Contributor

mbrubeck commented Dec 16, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Dec 16, 2015

📌 Commit ee7f2de has been approved by mbrubeck

@bors-servo
Copy link
Contributor

bors-servo commented Dec 17, 2015

Testing commit ee7f2de with merge 7665a01...

bors-servo added a commit that referenced this pull request Dec 17, 2015
Use the whitespace flag in each glyph instead of going to the string for whitespace stripping.

`str::slice_chars` was O(n) and #2 in the profile.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8994)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Dec 17, 2015

💔 Test failed - mac-rel-css

@jdm
Copy link
Member

jdm commented Dec 17, 2015

@pcwalton, can you reproduce these locally?

@nox
Copy link
Member

nox commented Dec 30, 2015

@nox
Copy link
Member

nox commented Dec 30, 2015

@bors-servo clean try

@nox
Copy link
Member

nox commented Dec 30, 2015

@bors-servo try force

@nox
Copy link
Member

nox commented Dec 30, 2015

@bors-servo clean try force

@nox nox closed this Dec 30, 2015
@nox nox reopened this Dec 30, 2015
@nox
Copy link
Member

nox commented Dec 30, 2015

@nox
Copy link
Member

nox commented Dec 30, 2015

@bors-servo r- force

@nox
Copy link
Member

nox commented Dec 30, 2015

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Dec 31, 2015

@bors-servo r=mbrubeck

@bors-servo
Copy link
Contributor

bors-servo commented Dec 31, 2015

📌 Commit ee7f2de has been approved by mbrubeck

@frewsxcv
Copy link
Member

frewsxcv commented Jan 18, 2016

@bors-servo r=mbrubeck

@bors-servo
Copy link
Contributor

bors-servo commented Jan 18, 2016

📌 Commit ee7f2de has been approved by mbrubeck

@nox
Copy link
Member

nox commented Feb 2, 2016

@bors-servo r=mbrubeck

@bors-servo
Copy link
Contributor

bors-servo commented Feb 2, 2016

💡 This pull request was already approved, no need to approve it again.

  • This pull request previously failed. You should add more commits to fix the bug, or use retry to trigger a build again.
  • There's another pull request that is currently being tested, blocking this pull request: #9492
@bors-servo
Copy link
Contributor

bors-servo commented Feb 2, 2016

📌 Commit ee7f2de has been approved by mbrubeck

@nox
Copy link
Member

nox commented Feb 2, 2016

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Feb 2, 2016

Testing commit ee7f2de with merge de20299...

bors-servo added a commit that referenced this pull request Feb 2, 2016
Use the whitespace flag in each glyph instead of going to the string for whitespace stripping.

`str::slice_chars` was O(n) and #2 in the profile.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8994)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Feb 2, 2016

💔 Test failed - linux-rel

@jdm
Copy link
Member

jdm commented Feb 2, 2016

  ▶ FAIL [expected PASS] /css21_dev/html4/block-non-replaced-width-007.htm
  └   → /css21_dev/html4/block-non-replaced-width-007.htm eb195905e02d7943de70d2b8ac617e074179e996
/css21_dev/html4/reference/block-non-replaced-width-007-ref.htm 47ad8313feacfb8add7c5d1c014c7975027bf5b7
Testing eb195905e02d7943de70d2b8ac617e074179e996 == 47ad8313feacfb8add7c5d1c014c7975027bf5b7

  ▶ PASS [expected FAIL] /css21_dev/html4/floats-wrap-bfc-002-right-table.htm
@jdm
Copy link
Member

jdm commented Feb 26, 2016

@pcwalton This had test failures. Are you planning to investigate them, or should we close the PR?

@pcwalton
Copy link
Contributor Author

pcwalton commented Feb 29, 2016

I'll look at them.

@jdm
Copy link
Member

jdm commented Mar 10, 2016

Filed #9955 to keep track of this. Feel free to reopen it when you end up making progress.

@jdm jdm closed this Mar 10, 2016
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

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