2010/1/21 Gustavo Sverzut Barbieri <barbi...@profusion.mobi>:
> On Thu, Jan 21, 2010 at 8:30 AM, Atton Jonathan
> <jonathan.at...@gmail.com> wrote:
>> 2010/1/21 Brian Wang <brian.wang.0...@gmail.com>
>>
>>> Hello all,
>>>
>>> Loading (startup) performance problem:
>>> --------------------------------------------------
>>> I just had time to look at the elm_genlist performance problem again.
>>> Sometime ago, I asked the list about elm_genlist's walking through the
>>> list at startup in order to determine the list's width and height.
>>> However, the performance problem when loading a huge list of items to
>>> a genlist still persists.  While it is okay on my desktop, it really
>>> freezes up my target (ARM926ejs @ 400MHz) for quite some time.
>>>
>>> I suggest adding a new API:
>>> elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous)
>>> to let the genlist know about the list's nature and uses the first
>>> item's width and height as a reference for the remaining list items.
>>> 'homogeneous' also implies 'compress' mode.
>>> On my target, it loads 1000+ items fine this way without rendering the
>>> system unresponsive.
>>> genlist already does lazy-loading quite well.  This will make it
>>> 'lazier' if the list items are of the same size.
>>>
>>
>> I agree, this is a great idea and will help a lot. Generally items have the
>> same height.
>
> I also agree with that.
>
> And to say more, just like I did with Guarana's list, we should
> abstract the model it uses, providing functions to check the number of
> items and get items given its index.  That way we can write those
> functions that query SQL and no need to actually create a list with
> 1000 elements in order to show it.
>
> This abstraction would also make it easier for python and other
> bindings, as it would be possible to walk "native" (python, perl...)
> without actually converting the huge elm_genlist calls.
>
> hint: I created eina_accessor to help with such thing.
>

It would be perfect :)


-- 
Nicolas Aguirre
Mail: aguirre.nico...@gmail.com
Web: http://www.digital-corner.org

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to