Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upOptimize `TextRun::advance_for_range`. #8990
Conversation
|
Is a text run being freed and a new one being created at the same location an issue here? Or is it unlikely to cause a problem in practice? |
d8ca19c
to
1902929
|
@samlh Added a mitigation for this (always safe because TextRuns are always Arc'd). |
|
-S-awaiting-review +S-fails-tidy r=mbrubeck with the tidy failure fixed
Reviewed 1 of 1 files at r1, 1 of 1 files at r2, 1 of 1 files at r3. Comments from the review on Reviewable.io |
1902929
to
520c561
`TextRun::index_of_first_glyph_run_containing` in TLS. This achieves a 40% or so hit rate on Wikipedia.
|
@bors-servo: r=mbrubeck |
|
|
Optimize `TextRun::advance_for_range`. The combined effects of these optimizations move `advance_for_range` from #1 in the layout profile on all sites I tested to #2, #3, or #4, depending on the site. r? @mbrubeck <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8990) <!-- Reviewable:end -->
|
|
|
This pull request apparently caused a regression: #9057 |
pcwalton commentedDec 15, 2015
The combined effects of these optimizations move
advance_for_rangefrom #1 in the layout profile on all sites I tested to #2, #3, or #4, depending on the site.r? @mbrubeck