The invention discloses a WiFi
feature data structure optimization method for a mobile terminal, and the method comprises the steps: dividing WiFi
feature data into AP, RATIO and MAX unit data for storage, loading MAX units in batches during the APP analysis of the mobile terminal, dispersing the memory use time, and reducing the memory
peak value; the assembled unit data follows a fixed
byte occupation rule, so that the size of the unit is predictable, excessive memory is prevented from being reserved, and the
peak value is further reduced; data are assembled according to a specific
sequence rule, a compact structure is formed, redundant intervals are reduced, the storage density is improved, a mobile terminal can efficiently access the data, the
average memory overhead is reduced, meanwhile, the data are stored in a
fixed sequence, analysis can be accessed in a
memory address sequence, the memory utilization efficiency is improved, and the average overhead is also reduced; in addition, a fixed rule and an ordered structure are convenient for accurately distributing and releasing the memory, timely releasing the
unit memory, avoiding invalid occupation leakage, reducing memory garbage, improving the memory
utilization rate, reducing the management complexity and reducing fragment-related garbage.