Bug 90673 - Avoid querying the font cache for the zero-width space glyph
Summary: Avoid querying the font cache for the zero-width space glyph
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Pierre Rossi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-06 03:04 PDT by Pierre Rossi
Modified: 2023-10-20 07:37 PDT (History)
9 users (show)

See Also:


Attachments
Patch (17.03 KB, patch)
2012-07-06 03:23 PDT, Pierre Rossi
no flags Details | Formatted Diff | Diff
Patch (19.15 KB, patch)
2012-07-06 09:45 PDT, Pierre Rossi
no flags Details | Formatted Diff | Diff
Patch (20.24 KB, patch)
2012-07-06 10:49 PDT, Pierre Rossi
no flags Details | Formatted Diff | Diff
Patch (20.26 KB, patch)
2012-07-12 08:18 PDT, Pierre Rossi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Rossi 2012-07-06 03:04:59 PDT
Avoid querying the font cache for the zero-width space glyph
Comment 1 Pierre Rossi 2012-07-06 03:23:04 PDT
Created attachment 151046 [details]
Patch
Comment 2 Early Warning System Bot 2012-07-06 03:33:16 PDT
Comment on attachment 151046 [details]
Patch

Attachment 151046 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/13155238
Comment 3 Build Bot 2012-07-06 03:46:41 PDT
Comment on attachment 151046 [details]
Patch

Attachment 151046 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/13152338
Comment 4 WebKit Review Bot 2012-07-06 03:47:32 PDT
Comment on attachment 151046 [details]
Patch

Attachment 151046 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/13152335
Comment 5 Alexey Proskuryakov 2012-07-06 06:34:50 PDT
Comment on attachment 151046 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=151046&action=review

> Source/WebCore/ChangeLog:11
> +        We can bypass a large part of this and rely directly on
> +        the character value.

Could you please explain why this is an improvement? How did you assess performance impact?
Comment 6 Pierre Rossi 2012-07-06 08:04:00 PDT
Comment on attachment 151046 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=151046&action=review

I'm going to try to clarify this ChangeLog entry in the next iteration, along with the necessary build fixes the EWS pointed out.

>> Source/WebCore/ChangeLog:11
>> +        the character value.
> 
> Could you please explain why this is an improvement? How did you assess performance impact?

The part that I believe to be an improvement is that it doesn't rely on each port's implementation of FontCache::getFontDataForCharacters() in the case of ZWSP. The example of the Qt port, where the mechanism used to get the glyph index for a given character becomes moot for ZWSP made me wonder why we need to store this particular glyph index in the first place.
I didn't bother to test things performance-wise to be honest, since it didn't seem to me this change could have a negative impact, but I can be proven wrong.
Comment 7 Pierre Rossi 2012-07-06 09:45:46 PDT
Created attachment 151095 [details]
Patch
Comment 8 WebKit Review Bot 2012-07-06 10:02:25 PDT
Comment on attachment 151095 [details]
Patch

Attachment 151095 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/13146444
Comment 9 Build Bot 2012-07-06 10:14:37 PDT
Comment on attachment 151095 [details]
Patch

Attachment 151095 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/13140540
Comment 10 Pierre Rossi 2012-07-06 10:49:33 PDT
Created attachment 151102 [details]
Patch

Some more blind build fixes
Comment 11 WebKit Review Bot 2012-07-06 13:05:54 PDT
Comment on attachment 151102 [details]
Patch

Attachment 151102 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/13154387
Comment 12 Pierre Rossi 2012-07-12 08:18:51 PDT
Created attachment 151959 [details]
Patch

Rebased patch, since the previous patch seems to have had trouble applying on the chromium EWS bot.
Comment 13 Ahmad Saleem 2023-10-20 07:37:42 PDT
@Myles & @Elika - is this applicable anymore?