Commit c707a8df authored by Petr Špaček's avatar Petr Špaček

WIP: zone2pickle memory optimization

parent 2ef686c4
......@@ -70,8 +70,9 @@ class ZoneExtractor():
if self.buf_owner_str != line_owner_str:
self.finish_rrset()
self.buf_owner_str = line_owner_str
# cache parsed owner name
self.buf_owner = self.names[line_owner_str]
# do not cache parsed owner name in dict, it is thrown away
# after few zone file lines
self.buf_owner = dns.name.from_text(line_owner_str)
elif self.buf_rdtype_str != line_rdtype:
# do not call finish twice!
self.finish_rrset()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment