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
zmikeSep 4 2019, 10:16 AM
Reviewer
Hermet
Differential Revision
D9531: eina/hash: optimize eina_hash_find() when hash is empty.
Parents
rEFL0dd29cc69634: ector: ++safety.
Branches
Unknown
Tags
Unknown
zmike committed rEFL95a0ac744948: eina/hash: optimize eina_hash_find() when hash is empty. (authored by subhransu mohanty <sub.mohanty@samsung.com>).Sep 4 2019, 10:16 AM