mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
VDev::getDev() is used in px4_access, which is used in orb_exists. And if the topic does not exist, it iterates over all 500 indexes, which is slow. It was slow even if the topic existed, the map reduces runtime from linear to logarithmic (there are around 80 items in the container). This is only used on posix.