From 568305250438d1a0f09e48c83245a741b6df280c Mon Sep 17 00:00:00 2001 From: Mark Zealey Date: Sat, 14 Dec 2013 23:47:15 +0200 Subject: [PATCH] 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. --- pdns/distributor.hh | 3 --- 1 file changed, 3 deletions(-) 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; } -- 2.50.1