Page MenuHomePhabricator

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

Authored by smohanty on Aug 8 2019, 7:35 PM.

Details

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.

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
smohanty created this revision.Aug 8 2019, 7:35 PM

It seems that this patch has no reviewers specified. If you are unsure who can review your patch, please check this wiki page and see if anyone can be added: https://phab.enlightenment.org/w/maintainers_reviewers/

smohanty requested review of this revision.Aug 8 2019, 7:35 PM
Hermet accepted this revision.Aug 8 2019, 9:59 PM
This revision is now accepted and ready to land.Aug 8 2019, 9:59 PM
Closed by commit rEFLda39f53b95c9: eina/hash: optimize eina_hash_find() when hash is empty. (authored by subhransu mohanty <sub.mohanty@samsung.com>, committed by Hermet). · Explain WhyAug 8 2019, 10:00 PM
This revision was automatically updated to reflect the committed changes.