home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH08 / A08093.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-22  |  300.3 KB  |  1 channel  |  11,025 sample rate  |  28 seconds
Transcription: The main reason to declare a function to be inline is to eliminate the overhead of function calls. Classes often have member functions with very small bodies. The time saved by inlining small functions that are frequently called can be considerable. For functions that contain more than a very few statements, the benefit of faster execution must be weighed against the cost of the extra space required to store multiple copies of the function.