View Single Post
Old 07-09-2013, 05:42 PM   #18 (permalink)
t vago
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 828
Thanked 708 Times in 456 Posts
Miscellaneous MPGuino optimization note

This:
Code:
	if (parms[metricIdx] == 1){
		distancefactor /= 1.609;
		fuelfactor /= 3.785;
	}
is 572 bytes larger than this:
Code:
	if (parms[metricIdx] == 1){
		distancefactor = 1000 * distancefactor / 1609;
		fuelfactor = 1000 * fuelfactor / 3785;
	}
  Reply With Quote