Prune : Take advantage of PathMatcher node sharing.
Prune : Take advantage of PathMatcher node sharing.

By copying the input and then modifying it, we can avoid a great many addPath() calls, and a lot of unnecessary memory usage. In many scenarios, the runtime and memory overhead is near-negligible.

lucienfostier/gaffer,andrewkaufman/gaffer,andrewkaufman/gaffer,johnhaddon/gaffer,ivanimanishi/gaffer,lucienfostier/gaffer,hradec/gaffer,ivanimanishi/gaffer,appleseedhq/gaffer,johnhaddon/gaffer,johnhaddon/gaffer,appleseedhq/gaffer,ivanimanishi/gaffer,boberfly/gaffer,chippey/gaffer,GafferHQ/gaffer,johnhaddon/gaffer,chippey/gaffer,boberfly/gaffer,chippey/gaffer,GafferHQ/gaffer,ImageEngine/gaffer,andrewkaufman/gaffer,GafferHQ/gaffer,hradec/gaffer,ivanimanishi/gaffer,GafferHQ/gaffer,boberfly/gaffer,appleseedhq/gaffer,johnhaddon/gaffer,GafferHQ/gaffer,lucienfostier/gaffer,boberfly/gaffer,ImageEngine/gaffer,ImageEngine/gaffer,hradec/gaffer,andrewkaufman/gaffer,hradec/gaffer,andrewkaufman/gaffer,appleseedhq/gaffer,ImageEngine/gaffer,lucienfostier/gaffer,hradec/gaffer,chippey/gaffer