Sachiel is right, List2 is the same as Inlist, lists where the data is the node, you avoid a bit of memory fragmentation and also another pointer redirection (->data). They're better suited for elements that are always in a list (ie: Evas_Object always in evas), but you can still have them in other Eina_List (not inlist!) if you wish.
The downside, at least at the moment, is that you don't have fast "count" operation, it need to walk the whole list in order to figure out how many elements exists. But you can append fast (O(1)) since it will keep a pointer to last element. On Sun, Apr 26, 2009 at 12:08 PM, Iván Briano (Sachiel) <sachi...@gmail.com> wrote: > On Sun, Apr 26, 2009 at 6:09 AM, Albin Tonnerre > <albin.tonne...@gmail.com> wrote: >> On Sun, Apr 26, 2009 at 10:48:40AM +0200, Vincent Torri wrote : >>> >>> >>> On Sun, 26 Apr 2009, Albin Tonnerre wrote: >>> >>>> Hello, >>>> The attached patches completely replace Ecore_List2 with Ecore_List. >>> >>> you mean "with Eina_List" ? >>> >> >> Indeed. Thanks :) > > Ecore_List2 would probably be better replaced by Eina_Inlist. > >> -- >> Albin Tonnerre >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.9 (GNU/Linux) >> >> iEYEARECAAYFAkn0JK8ACgkQIjAgwqfG8N9XKQCfYAkw4RDhUOM3DFGgGWpsAf9Q >> 3WUAnRGEBdY/FcnaVyk5MyVGaALP3iKF >> =G2mb >> -----END PGP SIGNATURE----- >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensign option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> enlightenment-devel mailing list >> enlightenment-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> >> > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel