]> git.street.me.uk Git - andy/viking.git/commit
Optimize tooltip message generation, remove unnecessary track iterations.
authorRob Norris <rw_norris@hotmail.com>
Sat, 22 Mar 2014 12:31:52 +0000 (12:31 +0000)
committerRob Norris <rw_norris@hotmail.com>
Sat, 22 Mar 2014 12:31:52 +0000 (12:31 +0000)
commita970009cc348d39f7ecb6eb284f9319657959465
tree8bd29c550a9852a06170f06cefaf4425b5f8fabf
parenta9eda0afe59d10f39a9329a4c971c2f3c6e2fc1c
Optimize tooltip message generation, remove unnecessary track iterations.

Limit vik_track_get_tp_last() usage, since it uses g_list_last(),
 which in turn iterates through the list to find the last trackpoint.

Thus cache the last trackpoint before multiple usage in tooltip generation.

Hopefully this will make it more likely these tooltips will get shown in Windows.
src/viktrwlayer.c