]> git.mxchange.org Git - flightgear.git/commit
Traffic performance: add airport memory cache
authorThorstenB <brehmt@gmail.com>
Sat, 24 Nov 2012 11:42:31 +0000 (12:42 +0100)
committerThorstenB <brehmt@gmail.com>
Sat, 24 Nov 2012 11:42:31 +0000 (12:42 +0100)
commit830526a7937217e4a47ec694133ce1cf17d57ad5
tree41179d2f85342c151224f3dc9fa0f6dd21f82dbc
parent439ad4a7c8278ed5208add0c42b478547952cdad
Traffic performance: add airport memory cache
to avoid repeating identical NavCache/SQL queries. Also ensures we're
not using multiple FGAirport instances for an airport - each triggering
identical queries to pull in airport data.
Airports by ICAO ID are requested very frequently at run-time, so caching
significantly boosts performance.
src/Airports/simple.cxx
src/Airports/simple.hxx