Em segunda-feira, 5 de setembro de 2016, Cedric BAIL <cedric.b...@free.fr>
escreveu:

> On Sep 3, 2016 13:09, "Gustavo Sverzut Barbieri" <barbi...@gmail.com
> <javascript:;>> wrote:
> >
> > since we're talking small optimizations, some comments:
> >
> > > +EAPI int efl_callbacks_cmp(const Efl_Callback_Array_Item *a, const
> Efl_Callback_Array_Item *b);
> >
> > static inline this here, this reduces the symbol lookup and will allow
> > some compiler optimizations to expand qsort() and avoid the function
> > call (not sure they do this now, but maybe in future).
>
> It is quite hard to do this kind of optimization at the compiler level in a
> generic way which is why I didn't put that as an inline. there are cost
> associated with inline, like increased compilation time and code size that
> I didn't want to pay for now. If in the future compiler start to improve on
> this, we can easily move that to be an inline without breaking the ABI (we
> have done that already enough in the past).
>
>
Then another option is to expose the function that does qsort() and uses
cmp :)




> Cedric
>
> > --
> > Gustavo Sverzut Barbieri
> > --------------------------------------
> > Mobile: +55 (16) 99354-9890
> >
> >
> ------------------------------------------------------------
> ------------------
> > _______________________________________________
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net <javascript:;>
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> ------------------------------------------------------------
> ------------------
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net <javascript:;>
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>


-- 
Gustavo Sverzut Barbieri
--------------------------------------
Mobile: +55 (16) 99354-9890
------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to