]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Further improve get_rdata_class(). 442/head
authorBrian Wellington <bwelling@xbill.org>
Thu, 2 Apr 2020 17:32:57 +0000 (10:32 -0700)
committerBrian Wellington <bwelling@xbill.org>
Thu, 2 Apr 2020 17:32:57 +0000 (10:32 -0700)
commit331358ba1d336f0e63d78d2b3aa78ec07a020f6b
tree62397431de61c9a71b0f36393ac17757d253d18d
parentc6507e0c4739439f40360870e67575327f6c2654
Further improve get_rdata_class().

When we find a class-independent type, cache it for both class ANY and
the requested type, to avoid an extra dict lookup the next time.  If we
don't find anything, cache GenericRdata, to avoid extra module loads the
next time.
dns/rdata.py