I am having some issues with extremely slow processing of few lines of my script as given below .I guess apply & customised function are slowing down the performance Any sug