From: Mark Zealey Date: Sat, 14 Dec 2013 21:47:15 +0000 (+0200) Subject: Remove AnswerData.created time field as it doesn't seem to be referenced anywhere... X-Git-Tag: rec-3.6.0-rc1~240^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=568305250438d1a0f09e48c83245a741b6df280c;p=pdns Remove AnswerData.created time field as it doesn't seem to be referenced anywhere and the time() call seems to take about 1-2% of process time under high load. --- diff --git a/pdns/distributor.hh b/pdns/distributor.hh index 6818c3f2d..77b46295e 100644 --- a/pdns/distributor.hh +++ b/pdns/distributor.hh @@ -55,7 +55,6 @@ extern StatBag S; templatestruct AnswerData { Answer *A; - time_t created; }; template class Distributor @@ -252,7 +251,6 @@ templatevoid *MultiThreadDistributo AnswerData AD; AD.A=a; - AD.created=time(0); QD.callback(AD); } @@ -288,7 +286,6 @@ templateint SingleThreadDistributor } AnswerData AD; AD.A=a; - AD.created=time(0); callback(AD); return 0; }