Link Details

Link 88007 thumbnail
User 252611 avatar

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.
  • 12
  • 4
  • 1072
  • 489

Comments

Add your comment
User 281687 avatar

paul_houle replied ago:

0 votes Vote down Vote up Reply

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.

User 211055 avatar

peter_lawrey replied ago:

0 votes Vote down Vote up Reply

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. :)
,

User 284713 avatar

alejandro.gonzalez replied ago:

0 votes Vote down Vote up Reply

it is an April fool.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.