What do you mean "takes too much time"?

If you mean "all items are actually deleted", it depends on what you
do in item_del callbacks.

Basically if any item is not doing any job, it deletes all items.
When each item is deleted, item_del callback is called for each item.
So
1. It depends on what you're doing in item_del callbacks.
2. It depends on what you're doing with genlist item. If you're
dragging or doing any job with genlist. Clearing will be deferred.

Therefore what you really can do for the speed is to delete existing
genlist and create another genlist and use the new one.
While you're using existing genlist, you can deal with a new one.

Thanks.
Daniel Juyung Seo (SeoZ)





On Sat, Sep 3, 2011 at 6:58 PM, Carsten Haitzler <ras...@rasterman.com> wrote:
> On Fri, 02 Sep 2011 02:10:46 +0000 (GMT) suxia li <suxia...@samsung.com> said:
>
>> Hi there, does any one have any idea about how to delete and rebuild the
>> genlist more fast, it seems the elm_genlist_clear takes too much time if it
>> is too big? thanks in advance~
>
> slow? admittedly this is an i5 desktop at 3.3ghz, but a genlist with 200,000
> items (probably at least 10x the # of items you have) and it takes 0.018
> seconds to clear. its effectively instant.
>
> on a 1.6ghz atom tablet, the same clear takes 0.129 seconds.
>
> on something much more weeny than the average smartphone these days (a 600mhz
> pentium-m - sorry at home and my arm stuff isn't up for hacking today),
> clearing the same 200,000 item genlist takes 0.306 seconds...
>
> so.. you have something very peculiar here - i'm seeing it be fast here.
>
> --
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    ras...@rasterman.com
>
>
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to