Java vs C app performance – Gary explains