genlist: fix item calculation performance issue