No description provided.
@herm - was this in your plans? Were re-using the grammars in the fast_cast stuff but it appears we're not yet re-using grammers in the text formatting/placement from_xml parsing. Am I seeing that right?
this looks like the performance culprit: https://github.com/mapnik/mapnik/blob/master/src/formatting/text.cpp#L50
@herm did you have a chance to look into this ?
It looks to me that being able to pass the grammar through is going to require some serious cleanup and refactoring of the new text formatting/placement stuff. @herm - can you comment on how you see this working?
this line :
return boost::make_shared<text_node>(parse_expression(data, "utf8"));
expands to :
expression_factory::parse_from_string(expr, data, grammar);
which is expensive.
Reuse expression grammar for TextSymbolizer.
Replace remaining parse_expression() calls.