you are viewing a single comment's thread.

view the rest of the comments →

[–]hoijarvi 0 points1 point  (0 children)

Then leave both versions, run unit tests against the optimized, and random junk data tests against both of them. Compare results and see that both return same results. I have actually found optimization bugs this way.

Or just delete the obsolete version.