With lots of tasks the dynamic array takes a big performance hit as its allocating all the time on pop_front