Comment 32 for bug 560795

(In reply to comment #29)

Thanks, Behdad.

> > Get rid of the simple path altogether, in WebKit?
>
> Yes, that's the way it should be IMO. The reason it's not possible right now, is because WebKit does not cache shaping results. As such, every time text is being shown, it's being shaped and shown. That's why supposedly the complex text path is "too slow" for common usage. With effective caching it's possible to turn full shaping on for all scripts. Indeed, that's what Firefox does.

I don't know enough about it yet - but out of curiosity: would you have to cache the shaping coordinate results for arbitrary string length or is it a matter of caching the results for individual pairs of codepoints?

> I don't have any heuristics in mind. You can start by adding Serbian, and then add other languages when people nag.

We can call it the nag-heuristic :-)