mavlink/qgroundcontrol — Issue #33: MAVLinkProtocol.cc wastes 65kB
Author: Susurrus
Created: 2012-02-14 17:19:55+00:00
State: open

MAVLinkProtocol.cc uses a two-dimensional array for storing the last received sequence number for incoming messages. This is indexed by the system ID and then the component ID. It reserves 65kB to store what is most likely a very small number of pairings. The look-up times for an array like this is very fast, but that's a lot of wasted memory.