in reply to Print Vs Return In a Subroutine

In dubio pro reo I assume the scenario is:
You need to print a lot of stuff to stdout (screen, file, http pipeline...). You can print immediately. Or return strings up the caller chain where they get printed.
Q: At which size would you see an performance impact?
A: I guess bart has it right: "You're micro-optimizing. Stop it."

Replies are listed 'Best First'.
Re^2: Print Vs Return In a Subroutine
by heatblazer (Scribe) on Mar 30, 2012 at 18:53 UTC

    Considering nowadays cpu`s and amount of ram, I agree that microptimization is useless.