summaryrefslogtreecommitdiff
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 10:57:07 +0900
commit93d56faff76806e13dc31f3df907c5ddc89060a7 (patch)
tree83b1a60e3a84652489a9e5dfc5af7aa551a84f64
parent2f2b1c5ad767555eb6e6da226b6a5ac715064845 (diff)
downloadefl-93d56faff76806e13dc31f3df907c5ddc89060a7.tar.gz
evas/cserve2: Small performance fixes
-rw-r--r--src/bin/evas/evas_cserve2_index.c6
-rw-r--r--src/bin/evas/evas_cserve2_slaves.c2
-rw-r--r--src/lib/evas/cserve2/evas_cs2_client.c4
3 files changed, 9 insertions, 3 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)
{
diff --git a/src/lib/evas/cserve2/evas_cs2_client.c b/src/lib/evas/cserve2/evas_cs2_client.c
index 4a005215ad..01bd8b74d0 100644
--- a/src/lib/evas/cserve2/evas_cs2_client.c
+++ b/src/lib/evas/cserve2/evas_cs2_client.c
@@ -1447,13 +1447,15 @@ _font_entry_glyph_map_rebuild_check(Font_Entry *fe, Font_Hint_Flags hints)
fe->map->mempool.data + gl->offset;
gl->base.bitmap.num_grays = gd->num_grays;
gl->base.bitmap.pixel_mode = gd->pixel_mode;
+ gl->idx = gd->index;
gl->rid = 0;
eina_clist_add_head(&fe->map->glyphs, &gl->map_entry);
fash_gl_add(fe->fash[hints], gd->index, gl);
cnt++;
}
- DBG("Added %d glyphs to the font hash (out of %d scanned)", cnt, tot);
+ if (cnt)
+ DBG("Added %d glyphs to the font hash (out of %d scanned)", cnt, tot);
}
return cnt;