Eurecat / astar-gridmap-2d

A* algorithms for 2D gridmaps. The fastest one, until you prove me wrong

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commit c4a1428 makes code slower, not faster

facontidavide opened this issue · comments

This change makes the code run slightly slower, not faster, in release mode.

So, it is using more RAM without any actual benefit. These are my benchmarks:

BEFORE:

BM_AStar_Big          112757675 ns    112767742 ns           25
BM_AStar_Smooth_1000   87412129 ns     87419778 ns           32
BM_AStar_Small          5009150 ns      5009642 ns          567

AFTER

BM_AStar_Big          113887220 ns    113840285 ns           24
BM_AStar_Smooth_1000   92206363 ns     92214387 ns           30
BM_AStar_Small          5060795 ns      5061211 ns          557