HomePhabricator

edje: optimize color_class_recursive_find_helper() function

Authored by subhransu mohanty <sub.mohanty@samsung.com> on Aug 8 2019, 10:02 PM.

Description

edje: optimize color_class_recursive_find_helper() function

Summary:
If the color_class is not overridden by the object level the
hash will be empty but still we do the expensive call to _edje_hash_find_helper()
find the color_class in an empty hash. by checking if the hash is empty
and returning early we save lot of unnecessary hash computaion and lookup.

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, reviewers, committers

Tags: efl

Differential Revision: https://phab.enlightenment.org/D9532

Details

Committed
HermetAug 8 2019, 10:02 PM
Reviewer
Hermet
Differential Revision
D9532: edje: optimize color_class_recursive_find_helper() function
Parents
rEFLda39f53b95c9: eina/hash: optimize eina_hash_find() when hash is empty.
Branches
Unknown
Tags
Unknown
Hermet committed rEFL1b94d90d53dd: edje: optimize color_class_recursive_find_helper() function (authored by subhransu mohanty <sub.mohanty@samsung.com>).Aug 8 2019, 10:02 PM