From 63dbe03e636d39923d47da1e0ef167a36faeb014 Mon Sep 17 00:00:00 2001 From: Squirtleee Date: Thu, 8 Jan 2026 04:00:56 -0500 Subject: [PATCH 1/2] fixed aorrtc benchmark for early exit --- src/impl/vamp/planning/aorrtc.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/impl/vamp/planning/aorrtc.hh b/src/impl/vamp/planning/aorrtc.hh index 907ee0e9..dcd8f5cc 100644 --- a/src/impl/vamp/planning/aorrtc.hh +++ b/src/impl/vamp/planning/aorrtc.hh @@ -408,9 +408,13 @@ namespace vamp::planning result = simplify(result.path, environment, settings.simplify, rng); } + result.nanoseconds = vamp::utils::get_elapsed_nanoseconds(start_time); + result.iterations = iters; + // Exit early if trivial, unsolved, or not optimizing if (not settings.optimize or result.path.empty() or result.path.size() == 2) { + return result; } From 14f20c9b4978e3c57c032fd8a6f6a47a0d1bbe94 Mon Sep 17 00:00:00 2001 From: Squirtleee Date: Thu, 8 Jan 2026 04:03:01 -0500 Subject: [PATCH 2/2] removed extra lines --- src/impl/vamp/planning/aorrtc.hh | 1 - 1 file changed, 1 deletion(-) diff --git a/src/impl/vamp/planning/aorrtc.hh b/src/impl/vamp/planning/aorrtc.hh index dcd8f5cc..692ac40c 100644 --- a/src/impl/vamp/planning/aorrtc.hh +++ b/src/impl/vamp/planning/aorrtc.hh @@ -414,7 +414,6 @@ namespace vamp::planning // Exit early if trivial, unsolved, or not optimizing if (not settings.optimize or result.path.empty() or result.path.size() == 2) { - return result; }