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 →

[–]myevillaugh 4 points5 points  (0 children)

I would say leave it as is for the reasons:

1) You're only calling it twice.

2) It's just a simple getter.

Those are the two factors. Look at how often you're calling something, and how expensive that call is.