feat: small performance improvement constructing outgoing questions (… · python-zeroconf/python-zeroconf@157185f

Original file line numberDiff line numberDiff line change

@@ -127,16 +127,16 @@ cdef class DNSOutgoing:

127127

)

128128

cpdef packets(self)

129129
130-

cpdef add_question_or_all_cache(self, DNSCache cache, object now, str name, object type_, object class_)

130+

cpdef add_question_or_all_cache(self, DNSCache cache, double now, str name, object type_, object class_)

131131
132-

cpdef add_question_or_one_cache(self, DNSCache cache, object now, str name, object type_, object class_)

132+

cpdef add_question_or_one_cache(self, DNSCache cache, double now, str name, object type_, object class_)

133133
134134

cpdef add_question(self, DNSQuestion question)

135135
136136

cpdef add_answer(self, DNSIncoming inp, DNSRecord record)

137137
138138

@cython.locals(now_double=double)

139-

cpdef add_answer_at_time(self, DNSRecord record, object now)

139+

cpdef add_answer_at_time(self, DNSRecord record, double now)

140140
141141

cpdef add_authorative_answer(self, DNSPointer record)

142142