The execution time of this function is in milliseconds and sometimes in even seconds. It goes upto 3 seconds on my watch. I was wondering for optimised library to address this i