The performance drop in is in min() function I read that it calls item(), and it is slow.
min()
item()