graphhopper - Re-use EdgeIterator -
if understand well, edgeiterator can used 1 time. if correct, why can't reset avoid creating new instance of edgeiterator each time need loop on same node edges ?
thanks !
the edgeiterator reused if use edgeexplorer:
// store somewhere explorer = graph.createedgeexplorer(); // use somewhere edgeiterator iter = explorer.setbasenode(x); while(iter) {..}
still careful need 1 edgeexplorer every thread , every loop e.g. having double for-loop 1 explorer fail :)
Comments
Post a Comment