Bob Hanson wrote: > some of the renderers use > > atom.getScreenX() > > and some use > > atom.screenX > > They are the same; Atom.getScreenX() simply returns screenX > > Q: would it be reasonable to just get rid of "getScreenX()"? I > understand that generally one wants to expose methods like this, not the > variable itself, but in this case, it isn't a public method, and it is > used SO much, wouldn't it be marginally faster and programmatically "OK" > to just reference the variable itself? >
Performance should be the same (JVM do the optimizations). One thing that can be done (if not already) is having getScreenX() final. It's always better to use methods than access directly the variable. Nico ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
