efl/legacy/eina/src
Gustavo Sverzut Barbieri 944be7e745 Bugfix eina_list_search_sorted_near_list() add sorted_insert.
eina_list_search_sorted_near_list() was broken and barfed at my face
during development of eina_list_sorted_insert(), so I rewrote it
following more traditional approach, also adding special cases for
head/tail remembering that random access in lists is not as fast as
array. I also simplified that code.

eina_list_sorted_insert() should be fast, O(log2 n) insert, with
special cases to insert already sorted arrays forwards or backwards,
however I believe that it's better to simply append/prepend in those
cases (if known).



SVN revision: 41625
2009-08-06 22:31:45 +00:00
..
include Bugfix eina_list_search_sorted_near_list() add sorted_insert. 2009-08-06 22:31:45 +00:00
lib Bugfix eina_list_search_sorted_near_list() add sorted_insert. 2009-08-06 22:31:45 +00:00
modules * eina: Expose an helper for memory pool as Eina_Trash data type. 2009-07-15 13:13:52 +00:00
tests Bugfix eina_list_search_sorted_near_list() add sorted_insert. 2009-08-06 22:31:45 +00:00
.cvsignore Add .cvsignore. 2008-07-30 13:09:03 +00:00
Makefile.am Patch from Vincent Torri that cleanup tests, coverage and benchmark. 2008-09-29 14:35:28 +00:00