diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2013-08-27 15:35:22 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2013-10-28 15:47:14 +0900 |
commit | 50be9145a1d6706ae0aaa5a81211e214d37422fd (patch) | |
tree | 83b1a60e3a84652489a9e5dfc5af7aa551a84f64 /src/bin/evas | |
parent | 1a324754fd886cbb03c09e7cba81d5ad36938143 (diff) | |
download | efl-50be9145a1d6706ae0aaa5a81211e214d37422fd.tar.gz |
evas/cserve2: Small performance fixes
Diffstat (limited to 'src/bin/evas')
-rw-r--r-- | src/bin/evas/evas_cserve2_index.c | 6 | ||||
-rw-r--r-- | src/bin/evas/evas_cserve2_slaves.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/evas/evas_cserve2_index.c b/src/bin/evas/evas_cserve2_index.c index 2c4d9dc15b..ce5b93a6fe 100644 --- a/src/bin/evas/evas_cserve2_index.c +++ b/src/bin/evas/evas_cserve2_index.c @@ -550,11 +550,15 @@ _shared_index_entry_get_by_id(Shared_Index *si, unsigned int id) obj = (Index_Entry *) (base + (elemsize * id)); if (obj->id == id) return obj; + if (obj->id < id) + low = id + 1; + else + high = id; } // Binary search start_high = high; - while(high != low) + while(high > low) { cur = low + ((high - low) / 2); obj = (Index_Entry *) (base + (elemsize * cur)); diff --git a/src/bin/evas/evas_cserve2_slaves.c b/src/bin/evas/evas_cserve2_slaves.c index 3bbf39d164..a1fc7f5c82 100644 --- a/src/bin/evas/evas_cserve2_slaves.c +++ b/src/bin/evas/evas_cserve2_slaves.c @@ -128,7 +128,7 @@ _slave_proc_dead_cb(int pid, int status EINA_UNUSED) { Slave_Proc *s; - DBG("Child dead with pid '%d'.", pid); + INF("Child dead with pid '%d'.", pid); s = _slave_proc_find(pid); if (!s) { |