Re: Local variable or not?



Hendrik,
calling a method to obtain a reference is always more expensive than
using the reference that you already have. So, depending on how many
times you need the reference to call methods on, perhaps in some
extensive loop, you may be better of by getting it once and using that
repeatedly.

---
Paul Hamaker, SEMM
http://javalessons.com

.



Relevant Pages

  • Re: OO question
    ... not the entry already exists, I want to set-up some aspects of my object ... and make changes to it later depending on some condition. ... Anything you can do to a normal hash, you can do to an object. ... out of a reference to a scalar, an array, a filehandle, or pretty much ...
    (perl.beginners)
  • Re: Really weird COBOL behavior
    ... > of elements of the array and that the DEPENDING ON clause was simply to ... That applies not just to the direct reference to the table ... That standard also clarifies the combination of ODO and RECORD ...
    (comp.lang.cobol)
  • If statement referencing a VBA Form
    ... Can you use a field to reference a selection made on a VBA form? ... Depending on whether the Grantor is a person or company there are two ... On my vba form there are option buttons - individualor company. ...
    (microsoft.public.word.vba.general)
  • Re: Access VB and Serial Communication
    ... The following articles may be ... a good reference, depending on your exact needs. ...
    (microsoft.public.access.modulesdaovba)
  • Re: firefox error on page refreshing
    ... colored border on them depending on if they are selected or mouse ... or exists at the time) a reference to an element with the ID ... you are reading the id off an element and then using that to ...
    (comp.lang.javascript)