Skip to content

Better API for getting circuit paths

Nick Mathewson requested to merge nickm/arti:proto-better-path into main

This branch refactors circuit path storage as described in #787 (closed) so that we can return an Arc<Path> rather than having to do a deep copy over all our path elements every time we inspect a circuit.

I've tried to model the naming for the mutable structure after a similar member in Channel. Rather than removing the old path method, I've deprecated it and added a path_ref() instead: I suspect that path is in use by others.

Closes #787 (closed)

Merge request reports