dawati/dawati-shell — comment on commit 6e448ea2580e5e5b5c8cb5ba328403a87641912d
File: panels/applications/src/dawati-netbook-launcher.c line 602
By kalfa:

here you use twice g_list_find_custom and then return if the first result (iter_a) is null.
You waste time.

Better to call the first find, check the result and return if you need to.
Then, call the second find check the result and return if you need to.

This way you wan't call the second if you need to return immediately. Especially since looking for a string in a list is expensive.