public class AboutMe {
public static void main(String[] args) {
System.out.println("Java Developer and Trainer");
}
}
#!/usr/bin/env perl
print 'I used to be a Perl Dev.', "\n";
development slow
over-engineered code
forced OOP
scales
doesn't scale
line noise
cleverness, correctness
small code size
garbage collection
typing
exception handling
perl5 ref count, undef ...
java automagic - YMMV!
perl6 moarvm 2-stage
use the right tool for the job
use both!
http://bit.ly/2cneUPE
http://bit.ly/2bKHjQI
+[----->+++<]>+++.+++++++++++.--.+.[---->+<]>+++.[->+++<]>+.+++++++++++++.+.+++++.------------.---.+++++++++++++.[-->+++++<]>+++.[-->+++++++<]>.-----------.+++++++++++++.------.[++>---<]>--.-[--->++<]>--.-------.++.++++++++.------.+++++++++++++.
The inner class Blah.CommandActionTriggerListener is not declared static and hence each instance is bound to the parent action object. This action object has references to UI related objects. This way the asynchronous tasks in the scheduler use much more heap than needed which makes the GCs job unnecessary hard.
We have seen a system where this added up to 1Gigabite of heap.
If I am right then adding the static modifier to the inner class would be enough.