When poe support is enabled, a full snmpwalk is done against the complete poe tree for every port.
This moves the initial snmpwalk to outside the loop, before then including the poe file as before.
For those with poe enabled - polling time will reduce. The graph below is from an ASR9k with a reasonable number of ports.
Moved the snmp query for poe outside of the loop
Removed commented out code