]> git.ipfire.org Git - thirdparty/dnspython.git/commit
make rdata objects picklable again 487/head
authorPetr Špaček <petr.spacek@nic.cz>
Wed, 27 May 2020 09:06:41 +0000 (11:06 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Wed, 27 May 2020 09:06:41 +0000 (11:06 +0200)
commita4e3eca5c4361f89061e43458034fe0ef6284b62
tree0c06fb5d51122dc6c6dafb84e929793661853176
parent4bc60c4ad75de590f5744fea89bc2f875231c662
make rdata objects picklable again

__getstate__ implementation based on tuple and ordered __slots__
is slightly faster than implementation based on dicts.
It also produces smaller blobs.

Speed of this implementation is +- few percents the same
as it was in dnspython 1.16.0 and it now produces smaller blobs.

Fixes: #485
dns/rdata.py