[Webkit-unassigned] [Bug 39958] [Qt] TextBreakIteratorQt performance
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 8 04:53:40 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=39958
--- Comment #17 from Kenneth Rohde Christiansen <kenneth at webkit.org> 2010-06-08 04:53:38 PST ---
Comments from Dave Hyatt:
On Jun 7, 2010, at 4:18 PM, David.Leong at nokia.com wrote:
> My question is can we optimize this flow somehow? Can we re-use the
> TextBreakIterator in the render text class when performing the
> RenderText::positionForPoint() function?
That's what the ICU implementation does. I think you just need to fix your implementation to do the same. If you want to push the re-use higher you could probably make cursorMovementIterator cross-platform and then have it contain the static pointer to the reused iterator. Then the existing cursorMovementIterator could be renamed and be called by the new cross-platform function. However you could also just fix your implementation of cursorMovementIterator to reuse the iterator.
static bool createdCursorMovementIterator = false;
static TextBreakIterator* staticCursorMovementIterator;
return setUpIteratorWithRules(createdCursorMovementIterator, staticCursorMovementIterator, kRules, string, length);
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list