HomePhabricator

eina/hash: optimize eina_hash_find() when hash is empty.

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

Description

eina/hash: optimize eina_hash_find() when hash is empty.

Summary:
Check if hash is empty before computing the hash key and look inside the
hash to find data.

Note: could have called the eina_hash_population() api but didn't

because of extra function call.

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, reviewers, committers

Tags: efl

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

Details

Committed
HermetAug 8 2019, 10:00 PM
Reviewer
Hermet
Differential Revision
D9531: eina/hash: optimize eina_hash_find() when hash is empty.
Parents
rEFL21bebe042254: efl_ui_textpath: clear up path data when it's destructed.
Branches
Unknown
Tags
Unknown
Hermet committed rEFLda39f53b95c9: eina/hash: optimize eina_hash_find() when hash is empty. (authored by subhransu mohanty <sub.mohanty@samsung.com>).Aug 8 2019, 10:00 PM