Optimize the initial list size and growth rate for the visitor functions