ffnord / ffmap-backend

THIS PROJECT DOESN'T HAVE A MAINTAINER!
Other
20 stars 56 forks source link

nodedb.py: stop similar mac address check when parts are not equal #16

Closed sargon closed 10 years ago

sargon commented 10 years ago

According to profiling results the "is_derived_mac" method is the most called, most time consuming function in ffmap-backend, except for the rrdtool image generation. The following patch contains a simple optimization, skipping the main part of the function if none manipulated parts of the mac address are not equal.