Closed TachikakaMin closed 1 year ago
Could you describe what the improvement is? It seems to me like there might be some runtime benefit (direct lookup, rather than hash-map check), although both operations are O(1). Nevertheless, this does come at the cost of memory overhead, since now a large 2D array is needed. Any numbers would be helpful to decide if this should be merged.
Yes, you are right. I didn't notice it is an unordered map.
Some improvement when building our distance graph.