Eina stringshare now beat evas and ecore with this last change.

Benchmarking with enlightenment real data (25000 string add, 20 000 del) :
- eina:  4151399
- evas:  4286973
- ecore: 7753004



SVN revision: 36166
This commit is contained in:
Cedric BAIL 2008-09-22 13:11:08 +00:00
parent d3e0b59223
commit d0871d7d7d
1 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ eina_stringshare_add(const char *str)
if (!str) return NULL;
hash = eina_hash_djb2_len(str, &slen);
hash_num = hash & 0xFF;
hash &= 0xFFF;
hash &= 0xFF;
ed = (Eina_Stringshare_Head*) eina_rbtree_inline_lookup((Eina_Rbtree*) share->buckets[hash_num],
&hash, sizeof (hash),
@ -352,7 +352,7 @@ eina_stringshare_del(const char *str)
if (!str) return;
hash = eina_hash_djb2_len(str, &slen);
hash_num = hash & 0xFF;
hash &= 0xFFF;
hash &= 0xFF;
ed = (Eina_Stringshare_Head*) eina_rbtree_inline_lookup(&share->buckets[hash_num]->node,
&hash, sizeof (hash),