Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0a66846d340160d3277d39f5f24b7d91bb92845d
https://github.com/WebKit/WebKit/commit/0a66846d340160d3277d39f5f24b7d91bb92845d
Author: Kimmo Kinnunen <[email protected]>
Date: 2024-06-03 (Mon, 03 Jun 2024)
Changed paths:
M Source/WebCore/rendering/GlyphDisplayListCache.cpp
M Source/WebCore/rendering/GlyphDisplayListCache.h
Log Message:
-----------
Avoid extra lookup for text runs in GlyphDisplayListCache
https://bugs.webkit.org/show_bug.cgi?id=274960
rdar://129057676
Reviewed by Simon Fraser.
Simplify glyph cache by removing extra hash map separating frequently
painted text runs and infrequently painted text runs.
Limits before:
- Frequent: unlimited
- Infrequent: 2048
Limits after:
- Frequent: unlimited
- Infrequent: 2048 - count of frequent
Avoids extra hash lookup per query.
Avoids extra hash lookup per removal.
* Source/WebCore/rendering/GlyphDisplayListCache.cpp:
(WebCore::GlyphDisplayListCache::clear):
(WebCore::GlyphDisplayListCache::getDisplayList):
(WebCore::GlyphDisplayListCache::getIfExistsImpl):
(WebCore::GlyphDisplayListCache::remove):
* Source/WebCore/rendering/GlyphDisplayListCache.h:
Canonical link: https://commits.webkit.org/279641@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes