By Thierry.Lefort
via javaperformancetuning.com
Published: Jun 17 2008 / 09:41
The Commando Pattern provides specialized access to methods and variables to enable optimal performance in critical and non-critical sections of code. The Commando Pattern enables optimal performance in any application, and is a pattern that is frequently applied in projects.
Comments
paul_houle replied ago:
An unfunny joke that perpetuates the antipattern of "premature encapsulation" and "encapsulation for the sake of encapsulation", which often leads to the "sawzall antipattern" when changes to the software need to happen.
peter_lawrey replied ago:
The problem with the Commando pattern is that second guessing the JVM, especially Java 5/6 is hit and miss at best. Often code which confuses the JVM optimizer means the code is slower. So you need to test your optimisations and retest them with each release to determine if they are still an improvement.
Basicly the people who write the JVM come up with crazier optimisations that only people who do this all day long could think of. :)
,
alejandro.gonzalez replied ago:
it is an April fool.
Voters For This Link (12)
Voters Against This Link (4)