Migrate from LineBreakIteratorPool to TextBreakIteratorCache#14573
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Jun 2, 2023
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 85f6215) Details |
85f6215 to
c0447e5
Compare
Collaborator
|
EWS run on current version of this PR (hash c0447e5) Details |
https://bugs.webkit.org/show_bug.cgi?id=257590 rdar://110097890 Reviewed by Yusuke Suzuki. We have two different classes which do the same thing. I've been working on deduplicating them, and this is the last step. Microbenchmarks say there isn't a performance difference - presumably because we're still using ICU to do line breaking. We're just using a different intermediate class to get there. (And if the microbenchmarks say there isn't a performance difference, then normal benchmarks certainly won't say that there's a performance difference.) * Source/WTF/WTF.xcodeproj/project.pbxproj: * Source/WTF/wtf/CMakeLists.txt: * Source/WTF/wtf/text/LineBreakIteratorPoolICU.cpp: Removed. * Source/WTF/wtf/text/LineBreakIteratorPoolICU.h: Removed. * Source/WTF/wtf/text/TextBreakIterator.cpp: (WTF::acquireLineBreakIterator): Deleted. (WTF::releaseLineBreakIterator): Deleted. (WTF::openLineBreakIterator): Deleted. (WTF::closeLineBreakIterator): Deleted. * Source/WTF/wtf/text/TextBreakIterator.h: (WTF::CachedTextBreakIterator::~CachedTextBreakIterator): (WTF::CachedTextBreakIterator::CachedTextBreakIterator): (WTF::CachedTextBreakIterator::operator=): (WTF::CachedTextBreakIterator::preceding const): (WTF::CachedTextBreakIterator::following const): (WTF::CachedTextBreakIterator::isBoundary const): (WTF::LazyLineBreakIterator::get): (WTF::LazyLineBreakIterator::resetStringAndReleaseIterator): (WTF::LazyLineBreakIterator::~LazyLineBreakIterator): Deleted. * Source/WTF/wtf/text/icu/TextBreakIteratorICU.h: * Source/WebCore/rendering/BreakLines.h: (WebCore::nextBreakablePosition): Canonical link: https://commits.webkit.org/264825@main
c0447e5 to
9ad6a13
Compare
Collaborator
|
Committed 264825@main (9ad6a13): https://commits.webkit.org/264825@main Reviewed commits have been landed. Closing PR #14573 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
9ad6a13
c0447e5
🧪 api-mac