tom-r / tactics_pi

a performance enhancement of dashboard_pi for OpenCPN
16 stars 14 forks source link

Speed up history database by accessing system time functions only as … #30

Closed transmitterdan closed 5 years ago

transmitterdan commented 5 years ago

…needed.

Fix crash when lat or long are empty in RMB message

Extracting time elements from wxDateTime is expensive because WX goes back to the system for time-zone offsets every time an hour or minute is accessed. By storing the time vector as wxDateTime::Tm the system time functions are only accessed once for each new entry in the table.