Reasons for keeping functions small
Does the amount of work performed to place a function on the stack change significantly as the size of the function increases? I'm interested in reasons other than appearance and organization, more related to efficiency, that make writing smaller functions a good idea.
Example: A function containing 400 lines of code, 350 of which are contained within conditional statements. Those 350 can obviously be broken down into smaller functions, and would make an improvement, since the work inside one conditional, in this example, is independent of the work inside the others. The only extra overhead would be calling the function within the conditional. How much of a performance gain is there in putting each conditional statement's code in separate functions, if any.