On Sat, 6 Jun 2009 20:12:23 +0200 Cedric BAIL <[email protected]> said:
> >> I strongly disagree, when you disable magic debug in eina, you want to > >> avoid it's cost at all. > >>This include the call of the function call. > >> And from my test, it does have a big impact to just enter an empty > >> function. When we are speaking about performance, I think we can > >> accept the little tradeoff of needing to recompile application using > >> eina for maximum performance. > > > > If you're an application developer and use eina_magic, you're ready to pay > > that cost and more likely to rant about eina_magic being disabled than > > about any performance loss, as you ex;plicitely asked for it. > > Well, in my opinion, when doing development I use magic debug for > easing the stabilisation of my code, but in production I don't want to > pay a price at all. I know that my hardware is certainly one of the > slowest one where the EFL is running, and since a few years, it is > constanly running better. This should continue. So please don't make > the argument that we can accept a little drop in performance. We can > measure, test and try way to do this differently, but we should not > loose anything. i agree with cedric. the cost of a func call eery time u call an api call that may do just a few simple things like: ob->x = x; ob->y = y; if it's a macro or inlined doesnt matter, but a macro guarantes that it will be a complete NOP when disabled. it's no less clean and leads to good performance. > > If you're talking about eina, nothing prevents us to do > > some trickery so that functions calls are avoided internally, while still > > exporting the symbols. > > Well exporting the symbol could be done, if it's needed to prevent ABI > break between two build of eina, one with magic debug and the other > without. if really needed, but now u have a func symbol for external use and ,macros for internal... > -- > Cedric BAIL > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
