Re: [Vala] [suggestion] Make lambda generated func inline(performance)



2011/10/16 Tal Hadad <tal_hd hotmail com>


I thought on this simple suggestion:
Whenever lambda expression exist, Vala translate it to func:
static (type) __lambda4_ ([args]) {
...
}

Lambda expression is used for callback, but Vala always produce
another func which is the real callback, which call lambda func
(maybe for allowing user data).
So why don't generate lambda func as inline?


Gcc already inlines static functions when possible.

-- 
www.debian.org - The Universal Operating System


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]