Iterating on dataset extremely slow

Hi @zhh210 , can you please provide the exact code you substituted for Ray ? And how much the difference is between the two approaches?

Thanks