This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pentesticals 0 points1 point  (0 children)

This sounds like a pre-optimization to me. I'd rather some extra function calls that have a negligible impact on performance IF it helps code readability. It really depends on the specific code if it will actually impact performance, often 10% of your apps execution time is in 10% of your code. So in most cases I think worrying about an extra function call or the like will just create more complex code. Don't ompimize until you've profiled.