This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ngie
Recipients calcheng, ngie
Date 2019-10-02.22:15:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570054533.82.0.719604100062.issue38354@roundup.psfhosted.org>
In-reply-to
Content
Capturing more context here, based on internal discussion: other handlers are doing address resolution in `emit()` (HTTPHandler, SMTPHandler), which is expensive. In order for SysLogHandler to not regress behavior and not become expensive, performance-wise, it would probably be best to use `functools.lru_cache()`, using the address and a timeout as the key when resolving the addresses to avoid always doing address resolutions, e.g., DNS lookups: https://docs.python.org/3/library/functools.html#functools.lru_cache .
History
Date User Action Args
2019-10-02 22:15:33ngiesetrecipients: + ngie, calcheng
2019-10-02 22:15:33ngiesetmessageid: <1570054533.82.0.719604100062.issue38354@roundup.psfhosted.org>
2019-10-02 22:15:33ngielinkissue38354 messages
2019-10-02 22:15:33ngiecreate