summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-08-27 15:35:22 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:14 +0900
commit50be9145a1d6706ae0aaa5a81211e214d37422fd (patch)
tree83b1a60e3a84652489a9e5dfc5af7aa551a84f64 /src/bin
parent1a324754fd886cbb03c09e7cba81d5ad36938143 (diff)
evas/cserve2: Small performance fixes
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/evas/evas_cserve2_index.c6
-rw-r--r--src/bin/evas/evas_cserve2_slaves.c2
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)
550 obj = (Index_Entry *) (base + (elemsize * id)); 550 obj = (Index_Entry *) (base + (elemsize * id));
551 if (obj->id == id) 551 if (obj->id == id)
552 return obj; 552 return obj;
553 if (obj->id < id)
554 low = id + 1;
555 else
556 high = id;
553 } 557 }
554 558
555 // Binary search 559 // Binary search
556 start_high = high; 560 start_high = high;
557 while(high != low) 561 while(high > low)
558 { 562 {
559 cur = low + ((high - low) / 2); 563 cur = low + ((high - low) / 2);
560 obj = (Index_Entry *) (base + (elemsize * cur)); 564 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)
128{ 128{
129 Slave_Proc *s; 129 Slave_Proc *s;
130 130
131 DBG("Child dead with pid '%d'.", pid); 131 INF("Child dead with pid '%d'.", pid);
132 s = _slave_proc_find(pid); 132 s = _slave_proc_find(pid);
133 if (!s) 133 if (!s)
134 { 134 {