2011-12-21

Android: Using dynamically loaded classes for fast loading of data

In an aeronautical application I need to load airport data, such as name, location and altitude. There are about 40000 airports in the database, but not all need to be loaded at the same time. Small aeroplanes, like the ones targeted by my application, need only a few thousand. The rest are outside their reach.
Even with this limited number, loading the data from file turned out to be time-consuming. This article discusses the problem encountered, and how I used dynamically loaded classes to achieve a reasonable performance.