home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH08 / A08093.TXT < prev    next >
Encoding:
Text File  |  1993-09-14  |  454 b   |  8 lines

  1. The main reason to declare a function to be inline is to eliminate
  2. the overhead of function calls.  Classes often have member
  3. functions with very small bodies.  The time saved by inlining
  4. small functions that are frequently called can be considerable.
  5. For functions that contain more than a very few statements, the
  6. benefit of faster execution must be weighed against the cost of
  7. the extra space required to store multiple copies of the function.
  8.