|
From: John B. <mr...@gm...> - 2016-03-18 14:15:41
|
The inline feature is mainly used for providing type propagation in Factor, either because you want the word to know the type of its arguments or because one of its arguments is a quotation and that requires inlining. That can improve performance in many cases. There are a lot of drawbacks too, including that compiled code size gets larger because instead of one word that is compiled with calls to "jump into" other words, you would get massive gigantic words that contain all the logic in any word they call if you inlined everything. This can cause loss of speed sometimes. These thoughts from C++ generally apply to Factor: https://isocpp.org/wiki/faq/inline-functions On Fri, Mar 18, 2016 at 12:50 AM, Alexander Ilin <aj...@ya...> wrote: > Hello! > > Is there a reason to NOT mark everything with "inline"? > > ---=====--- > Александр > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140 > _______________________________________________ > Factor-talk mailing list > Fac...@li... > https://lists.sourceforge.net/lists/listinfo/factor-talk > |