Skip to main content
1 of 2
Shivan Dragon
  • 4.7k
  • 5
  • 26
  • 31

Really make sure than under real, production, conditions (realistic memory consumption, that triggers Garbage Collection realistically, etc), all those separate methods really make a performance difference (as opposed to having only one method). This will take a few days out of your time, but may save you weeks by simplifying the code you work with from now on.

Also, if you do discover that you need all the functions, you might want to use Javassist (http://www.csg.ci.i.u-tokyo.ac.jp/~chiba/javassist/) to generate the code programatically. As other have pointed out, you can automate it with Maven (https://github.com/icon-Systemhaus-GmbH/javassist-maven-plugin)

Shivan Dragon
  • 4.7k
  • 5
  • 26
  • 31