Don't recompute number of lines of a function every time