Bug 248299

Summary: [WinCairo] performance drop for text rendering by Cairo 1.17.6
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://browserbench.org/MotionMark1.2/developer.html

Description Fujii Hironori 2022-11-23 21:59:29 PST
[WinCairo] MotionMark Design performance drop by Cairo 1.17.6

Tested with: WinCairo WK1 256973@main + WebKitRequirements v2022.10.20

WebKitRequirements v2022.03.05 cairo.dll: 40.71
WebKitRequirements v2022.10.20 cairo.dll: 1.00

Screenshots: https://ibb.co/album/bH7c9t
Comment 1 Fujii Hironori 2022-11-24 21:26:03 PST
https://github.com/freedesktop/cairo/commit/62681fe0523ae96a29e2ff9c080a4c0f4ad40d4c
https://github.com/freedesktop/cairo/commit/82119ec2f38fc92ba711454d87558092f0ef4b32

They are the culprit. Reverting both changes fixes the performance problem.
Comment 2 Fujii Hironori 2022-11-24 23:10:24 PST
Fix scaled_glyph hash lookup on Win64 ยท freedesktop/cairo@1cc2320
https://github.com/freedesktop/cairo/commit/1cc23206bde186d4aef948bba11e591120c99dcd

It was fixed by this.