Break text styles into their own cache tier.
Previously the cache was divided only by layer, with entries keyed on a string built from the text and style. Now the style has its own tier in the cache, i.e. layers > styles > text > info. This introduces some complexity, since the nested for loops are ugly, but at the same time we avoid having to create the cache-key strings. More importantly it solves the problem of uniqueness that exists when we try to join strings that may contain arbitrary text. It also allows a further optimization in the canvas plugin, which can now set text style and color just once per distinct style, instead of with every string.
Showing
Please
register
or
sign in
to comment