I was debugging a function speed, and discovered that the time bottleneck was in DatePlus. I tried to change to DayPlus and get a even worse result.
Here are my time tests:
myDatePlus = DateList[AbsoluteTime[#1] + 86400*#2][[ ;; 3]] &;
n = 10^4;
t1 = (Table[myDatePlus[{2015, 3, 100}, 365], {i, 0, n}]; //
AbsoluteTiming // First)
t2 = (Table[DatePlus[{2015, 3, 100}, 365], {i, 0, n}]; //
AbsoluteTiming // First)
t3 = (Table[Normal[DayPlus[{2015, 3, 100}, 365]][[ ;; 3]], {i, 0, n}]; //
AbsoluteTiming // First)
N[t2/t1]
N[t3/t1]
> 0.068 (*t1*) > 3.957 (*t2*) > 13.428 (*t3*)> 58.19 (t2/t1) > 197.47 (t3/t1)
Can someone confirm it? Is t1 the best way to do it in current Mathematica version? (V10.0.2)

