elm_theme: Added a cache in elm_theme for styles that are failed to load.
authorSubhransu Sekhar Mohanty <sub.mohanty@samsung.com>
Tue, 18 Mar 2014 08:18:09 +0000 (17:18 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 18 Mar 2014 08:34:30 +0000 (17:34 +0900)
commit8149176791a0245db9f501207e7a037f678924e2
tree45de2c72a4d7129f6b177bd7c9171c4845c00b5e
parent9aa8058f8409af806b9384f7946022c3eaad87c0
elm_theme: Added a cache in elm_theme for styles that are failed to load.

Summary:
Currenlty loading a style that is not present in the system hits the worst case path in elm_theme as it searches through all hirarchy before
reporting that the style is not there. if those styles requested frequently it will be a overhead as it will goes through all the theme files again.
To avoid that I have added a cache which will keep track of the styles whose loading were not sucessfull so that for future request we can simply check the
cache before looking into the hirarchy of theme files.

Reviewers: seoz, raster

Reviewed By: raster

CC: raster
Differential Revision: https://phab.enlightenment.org/D601
src/lib/elm_priv.h
src/lib/elm_theme.c