NeuralMMO / environment

Neural MMO - A Massively Multiagent Environment for Artificial Intelligence Research
https://neuralmmo.github.io
MIT License
508 stars 67 forks source link

aStar speed up using heapq #69

Closed kywch closed 1 year ago

kywch commented 1 year ago

PriorityQueue has some locking overhead over heapq to make it thread-safe, but we don't need it here. right?

With heapq, astar takes about 7 ms per call (vs ~10 ms).