Normally when calling a 220-601 function, a program will evaluate and store the arguments, and then call (or branch to) the function's code, and then the function will later return back to the caller. While function calls are fast (typically taking much less than a microsecond on modern processors), the overhead 220-602 can sometimes be significant, particularly if the function is simple and is called many times.
One approach which can be a performance optimization in some situations is to use so-called "inline" functions. Marking a function as inline is a request (sometimes called a hint) to the N10-003 compiler to consider replacing a call to the function by a copy of the code of that function.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment