paoservis / osmtracker-android

Automatically exported from code.google.com/p/osmtracker-android
GNU General Public License v3.0
0 stars 0 forks source link

Patch for performance improvement in DisplayTrackView.java #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Attached you'll find a patch against the lastest SVN rev.

It changes 2 for loops to be a bit faster[1]. Also the logic has slightly been 
changed to not check if this is the last point on each iteration. This *should* 
be faster, but i had no good idea on how to measure it. Can you?

[1] http://developer.android.com/guide/practices/design/performance.html#foreach

Original issue reported on code.google.com by huebner.nils@googlemail.com on 28 Jun 2011 at 8:38

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, I've merged your patch. I guess it's difficult to say if it will be 
faster or not, but it shouldn't hurt as long as the code stays readable.

Original comment by nicolas@guillaumin.me on 19 Jul 2011 at 12:03