Closed Bug 1448590 Opened 7 years ago Closed 7 years ago

Avoid useless use of SIMD-accelerated Latin1 to UTF-16 conversion in layout

Categories

(Core :: Layout, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

Details

Attachments

(1 file)

These uses are with strings that don't benefit from a function optimized for longer strings and I'd have to adjust the callers anyway for a new signature that no longer accepts zero-terminated strings.
Comment on attachment 8962086 [details] Bug 1448590 - Avoid useless use of SIMD-accelerated Latin1 to UTF-16 conversion in layout. . https://reviewboard.mozilla.org/r/230944/#review236732 Hmmm. It feels weird that what was designed as an equivalent API with a different signature for when that signature made sense now has substantially different performance characteristics, and now needs to be avoided. (That's more a comment as String module owner than Layout.) From a layout perspective these changes are fine, though.
Attachment #8962086 - Flags: review?(dbaron) → review+
Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7f3837852827 Avoid useless use of SIMD-accelerated Latin1 to UTF-16 conversion in layout. r=dbaron.
(In reply to David Baron :dbaron: ⌚️UTC-7 from comment #2) > Comment on attachment 8962086 [details] > Bug 1448590 - Avoid useless use of SIMD-accelerated Latin1 to UTF-16 > conversion in layout. . > > https://reviewboard.mozilla.org/r/230944/#review236732 > > Hmmm. It feels weird that what was designed as an equivalent API with a > different signature for when that signature made sense now has substantially > different performance characteristics, and now needs to be avoided. (That's > more a comment as String module owner than Layout.) Maybe putting SIMD rather than strlen in the summary was misleading. The SIMD vs. no SIMD difference and the strlen vs. no strlen difference was already there before I started changing stuff. At least my removal of the bare-pointer-taking overloads that did strlen invisibly to the caller should make the performance characteristics more visible. > From a layout perspective these changes are fine, though. Thanks.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: