Lps 50259

Replace back the method body to yours locally, and run the unit test to see how it was broken.
And compare carefully to see the impl difference between yours and mine, figure out what's the performance difference.

Then improve the unit test to be 100% covered, and send it back to me.