nhairs / parsedmarc-fork

Experimental fork of PraseDMARC
https://nhairs.github.io/parsedmarc-fork/
Apache License 2.0
0 stars 1 forks source link

Performance updates that don't restructure the code #3

Closed rodpayne closed 2 months ago

rodpayne commented 2 months ago

Just a couple of fixes to improve the performance.

The self._ip_address_cache was not actually being used.

The dns_timeout was not being passed all of the way from the options, resulting in 6.0 seconds always being used for mail messages. (I consider setting the timeout to 2.0 seconds to be a performance improvement.)

I also made the update to the Dockerfile to work with the new source folder structure.