Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-28 Thread The Rasterman
On Fri, 26 Aug 2016 22:14:11 -0700 Cedric BAIL said: > On Fri, Aug 26, 2016 at 5:44 PM, Carsten Haitzler > wrote: > > On Fri, 26 Aug 2016 12:15:57 -0700 Cedric BAIL said: > >> On Fri, Aug 26, 2016 at 2:46 AM, Tom Hacohen wrote: > >> > On 24/08/16 20:03, Cedric BAIL wrote: > >> >> On Wed, Aug 2

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-26 Thread Cedric BAIL
On Fri, Aug 26, 2016 at 5:44 PM, Carsten Haitzler wrote: > On Fri, 26 Aug 2016 12:15:57 -0700 Cedric BAIL said: >> On Fri, Aug 26, 2016 at 2:46 AM, Tom Hacohen wrote: >> > On 24/08/16 20:03, Cedric BAIL wrote: >> >> On Wed, Aug 24, 2016 at 2:24 AM, Tom Hacohen wrote: >> >>> On 23/08/16 18:51, C

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-26 Thread The Rasterman
On Fri, 26 Aug 2016 12:15:57 -0700 Cedric BAIL said: > On Fri, Aug 26, 2016 at 2:46 AM, Tom Hacohen wrote: > > On 24/08/16 20:03, Cedric BAIL wrote: > >> On Wed, Aug 24, 2016 at 2:24 AM, Tom Hacohen wrote: > >>> On 23/08/16 18:51, Cedric BAIL wrote: > On Tue, Aug 23, 2016 at 3:31 AM, Tom H

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-26 Thread Cedric BAIL
On Fri, Aug 26, 2016 at 2:46 AM, Tom Hacohen wrote: > On 24/08/16 20:03, Cedric BAIL wrote: >> On Wed, Aug 24, 2016 at 2:24 AM, Tom Hacohen wrote: >>> On 23/08/16 18:51, Cedric BAIL wrote: On Tue, Aug 23, 2016 at 3:31 AM, Tom Hacohen wrote: >> >> >> > However, while they provide a nice

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-26 Thread Tom Hacohen
On 26/08/16 11:21, David Seikel wrote: > On Fri, 26 Aug 2016 10:46:48 +0100 Tom Hacohen > wrote: > >> a shitload of times. If I remember correctly, _efl_object_call_end is >> one line: _eo_unref(obj). And that one is essentially if >> (--(obj->ref) == 0) and then just returns in 99.99% of the case

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-26 Thread David Seikel
On Fri, 26 Aug 2016 10:46:48 +0100 Tom Hacohen wrote: > a shitload of times. If I remember correctly, _efl_object_call_end is > one line: _eo_unref(obj). And that one is essentially if > (--(obj->ref) == 0) and then just returns in 99.99% of the cases. Not > a lot to optimise there. :) Make it a

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-26 Thread Tom Hacohen
On 24/08/16 20:03, Cedric BAIL wrote: > On Wed, Aug 24, 2016 at 2:24 AM, Tom Hacohen wrote: >> On 23/08/16 18:51, Cedric BAIL wrote: >>> On Tue, Aug 23, 2016 at 3:31 AM, Tom Hacohen wrote: > > > However, while they provide a nice memory improvement, they have been hampering many optimi

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-24 Thread Cedric BAIL
On Wed, Aug 24, 2016 at 2:24 AM, Tom Hacohen wrote: > On 23/08/16 18:51, Cedric BAIL wrote: >> On Tue, Aug 23, 2016 at 3:31 AM, Tom Hacohen wrote: >>> However, while they provide a nice memory improvement, they have been >>> hampering many optimisation strategies that would make callback >>> i

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-24 Thread Tom Hacohen
On 23/08/16 18:51, Cedric BAIL wrote: > Hello, > > On Tue, Aug 23, 2016 at 3:31 AM, Tom Hacohen wrote: >> Callback arrays was an idea that was introduced a while back to save >> memory. The idea came from the observation that in many cases we add a >> few callbacks together to every object of the

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-23 Thread The Rasterman
On Tue, 23 Aug 2016 10:51:05 -0700 Cedric BAIL said: > Hello, > > On Tue, Aug 23, 2016 at 3:31 AM, Tom Hacohen wrote: > > Callback arrays was an idea that was introduced a while back to save > > memory. The idea came from the observation that in many cases we add a > > few callbacks together to

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-23 Thread Cedric BAIL
Hello, On Tue, Aug 23, 2016 at 3:31 AM, Tom Hacohen wrote: > Callback arrays was an idea that was introduced a while back to save > memory. The idea came from the observation that in many cases we add a > few callbacks together to every object of the same type. For example, > for an elm widget, w

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-23 Thread Daniel Hirt
Hi On 08/23/2016 03:59 PM, Gustavo Sverzut Barbieri wrote: > On Tue, Aug 23, 2016 at 7:31 AM, Tom Hacohen wrote: >> >> Hey, >> >> Callback arrays was an idea that was introduced a while back to save >> memory. > > ohhh, I guessed it was to improve usability, saving many "add" calls > at the end

Re: [E-devel] Callback arrays and callback invocation optimisations

2016-08-23 Thread Gustavo Sverzut Barbieri
On Tue, Aug 23, 2016 at 7:31 AM, Tom Hacohen wrote: > > Hey, > > Callback arrays was an idea that was introduced a while back to save > memory. ohhh, I guessed it was to improve usability, saving many "add" calls at the end of an "eo_add()"... at least it's how I use them. Take a look in GIT to

[E-devel] Callback arrays and callback invocation optimisations

2016-08-23 Thread Tom Hacohen
Hey, Callback arrays was an idea that was introduced a while back to save memory. The idea came from the observation that in many cases we add a few callbacks together to every object of the same type. For example, for an elm widget, we may add "move, resize, hidden, mouse_down, mouse_up" so