mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-06 05:34:09 -04:00
This is a first optimization of the algorithm. The struct for the neighbor umbrella has only one member, but new members will be added in the next optimization. The table below summarizes the mean CPU time in ns from the brenchmark results on an Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz processor: Cases | Naive implementation | First Optimization -------------------------------------------------- Min. | 26.0 | 28.00 1st Qu.| 78.0 | 48.75 Median | 132.0 | 57.00 Mean | 130.1 | 61.20 3rd Qu.| 182.2 | 76.00 Max. | 234.0 | 98.00 This optimization reduces the mean time for the worst case (Max. line) by more than 50%. |
||
---|---|---|
.. | ||
benchmarks | ||
examples | ||
tests | ||
AP_GeodesicGrid.cpp | ||
AP_GeodesicGrid.h | ||
AP_Math.cpp | ||
AP_Math.h | ||
definitions.h | ||
edc.cpp | ||
edc.h | ||
keywords.txt | ||
location.cpp | ||
location.h | ||
matrix3.cpp | ||
matrix3.h | ||
matrix_alg.cpp | ||
polygon.cpp | ||
polygon.h | ||
quaternion.cpp | ||
quaternion.h | ||
rotations.h | ||
vector2.cpp | ||
vector2.h | ||
vector3.cpp | ||
vector3.h | ||
vectorN.h |