Test this option. The problem is if circuits were built long before and they won't appear with events, so use getinfo as fallback.
Save events to a file and query the right circuit line.
I think this may speed up a little bit and avoid calling the control port many times.
Test this option. The problem is if circuits were built long before and they won't appear with events, so use getinfo as fallback. Save events to a file and query the right circuit line. I think this may speed up a little bit and avoid calling the control port many times.