Message353780
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 . |
|
Date |
User |
Action |
Args |
2019-10-02 22:15:33 | ngie | set | recipients:
+ ngie, calcheng |
2019-10-02 22:15:33 | ngie | set | messageid: <1570054533.82.0.719604100062.issue38354@roundup.psfhosted.org> |
2019-10-02 22:15:33 | ngie | link | issue38354 messages |
2019-10-02 22:15:33 | ngie | create | |
|