This optimization makes use of already stringshare'd text and avoids
unnecessary stringshare_add calls in markup_set. It improves the
performance of edje_calc when reapplying text to the textblock part.
Change-Id: I49f36e0404e44b92d3c255d0feeb126e5c4ffb44
Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
evas_object_async_block(obj);
+ if (text == o->markup_text)
+ {
+ /* Text is the same and already stringshared, do nothing */
+ return;
+ }
+ else
{
text = eina_stringshare_add(text);
if (text == o->markup_text)