3

Specifically looking for Java code tips and tricks of the trade for:

  • reducing memory footprint
  • increasing performance

Personally would like to see answers focusing on the "how" and not the "when" as the consensus among savvy developers is that early optimization is a bad idea as you don't have anything to profile and thus don't know what the actual bottlenecks will be.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil"

"In established engineering disciplines a 12 % improvement, easily obtained, is never considered marginal and I believe the same viewpoint should prevail in software engineering"

Donald Knuth

Community
  • 1
  • 1
Charles Goodwin
  • 6,402
  • 3
  • 34
  • 63
  • Agree while this may be a good question, it is not appropriate for SO. – Hovercraft Full Of Eels Sep 15 '11 at 01:26
  • 6
    "You should only ask practical, answerable questions based on actual problems that you face. Chatty, open-ended questions diminish the usefulness of our site and push other questions off the front page. Your questions should be reasonably scoped. If you can imagine an entire book that answers your question, you’re asking too much." Straight from http://stackoverflow.com/faq#dontask Try posting at http://programmers.stackexchange.com/ – ghostbust555 Sep 15 '11 at 01:27
  • 1
    With all due respect and agreement that this question does not belong here could not we just move it to programmers instead on closing. – Shahzeb Sep 15 '11 at 01:38
  • 3
    So this isn't appropriate, yet this is: http://stackoverflow.com/q/926266/546060 - there's tons of this stuff on SO? – Charles Goodwin Sep 15 '11 at 01:42
  • That's older stuff. Had those questions been asked now, they too would be closed. – SLaks Sep 15 '11 at 01:57
  • 1
    I am going to suggest my blog because half the articles are on this topic. There is too much to repeat http://vanillajava.blogspot.com/ I will say that most of the optimisations are for interest, as most developers would never need to worry about such low level optimisations. If you want sub-millisecond latencies, you should find something useful. – Peter Lawrey Sep 15 '11 at 06:55

0 Answers0