I've measured the two implementations against each other. The C
implementation (libspf2) is roughly twice as fast as the python one when DNS
records are all in the local cache. Most of the processing time is spent in
DNS queries for both. Those take as long as they take.
The current pyspf version does have a shorter timeout as recommended by RFC
7208.
I've measured the two implementations against each other. The C
implementation (libspf2) is roughly twice as fast as the python one when DNS
records are all in the local cache. Most of the processing time is spent in
DNS queries for both. Those take as long as they take.
The current pyspf version does have a shorter timeout as recommended by RFC
7208.