Re: [E-devel] stringshare use in elementary

2011-09-30 Thread The Rasterman
On Sat, 10 Sep 2011 12:52:04 -0300 Gustavo Sverzut Barbieri barbi...@profusion.mobi said: On Sat, Sep 10, 2011 at 12:44 PM, Mike Blumenkrantz m...@zentific.comwrote: Hi, Why is stringshare not used for labels in genlist/gengrid? It seems stupid that such a commonly used widget does

Re: [E-devel] stringshare use in elementary

2011-09-11 Thread Tom Hacohen
On 10/09/11 20:01, Mike Blumenkrantz wrote: too late! check out what I did in 61735 :D 61735? That's not recent, are you sure that's the one? Btw, also, malloc is faster than stringshare, I guess that's also a reason why he opted for that (as I said, it's only a small number of strings, only

Re: [E-devel] stringshare use in elementary

2011-09-11 Thread Mike Blumenkrantz
On Sun, 11 Sep 2011 09:51:15 +0300 Tom Hacohen tom.haco...@partner.samsung.com wrote: On 10/09/11 20:01, Mike Blumenkrantz wrote: too late! check out what I did in 61735 :D 61735? That's not recent, are you sure that's the one? It's hard to misremember a function name like

Re: [E-devel] stringshare use in elementary

2011-09-11 Thread Tom Hacohen
On 11/09/11 10:54, Mike Blumenkrantz wrote: obviously, but when it's the case that your list is composed entirely of strings that you will be reusing, it makes a lot more sense to stringshare. Only if you assure the strings passed are stringshares, i.e if you do eina_stringshare_*REF* on all

[E-devel] stringshare use in elementary

2011-09-10 Thread Mike Blumenkrantz
Hi, Why is stringshare not used for labels in genlist/gengrid? It seems stupid that such a commonly used widget does not take advantage of stringshares... -- Mike Blumenkrantz Zentific: Coding in binary since '10. --

Re: [E-devel] stringshare use in elementary

2011-09-10 Thread Gustavo Sverzut Barbieri
On Sat, Sep 10, 2011 at 12:44 PM, Mike Blumenkrantz m...@zentific.comwrote: Hi, Why is stringshare not used for labels in genlist/gengrid? It seems stupid that such a commonly used widget does not take advantage of stringshares... No idea, raster did it that way... it remained that way.

Re: [E-devel] stringshare use in elementary

2011-09-10 Thread Mike Blumenkrantz
On Sat, 10 Sep 2011 12:52:04 -0300 Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: On Sat, Sep 10, 2011 at 12:44 PM, Mike Blumenkrantz m...@zentific.comwrote: Hi, Why is stringshare not used for labels in genlist/gengrid? It seems stupid that such a commonly used widget does

Re: [E-devel] stringshare use in elementary

2011-09-10 Thread Tom Hacohen
On 10/09/11 18:59, Mike Blumenkrantz wrote: hmm at the least I'd think there would be a way to set a mode for it using something like elm_genlist_stringshare_mode_set or something... No way, don't ruin the API. :) I guess it doesn't really matter cause genlist only creates actual items for

Re: [E-devel] stringshare use in elementary

2011-09-10 Thread Mike Blumenkrantz
On Sat, 10 Sep 2011 19:54:18 +0300 Tom Hacohen t...@stosb.com wrote: On 10/09/11 18:59, Mike Blumenkrantz wrote: hmm at the least I'd think there would be a way to set a mode for it using something like elm_genlist_stringshare_mode_set or something... No way, don't ruin the API. :) too