Closed peci1 closed 3 years ago
Speed test before patch:
Info: 9 to 4
Info: Doing 1000000 10-level 1.000000-interval tests
Info: canTransform at Time(3) without error string took 2.520531 for an average of 0.000002521
Info: canTransform at Time(3) with error string took 4.727922 for an average of 0.000004728
Speed test after patch:
Info: 9 to 4
Info: Doing 1000000 10-level 1.000000-interval tests
Info: canTransform at Time(3) without error string took 0.221355 for an average of 0.000000221
Info: canTransform at Time(3) with error string took 4.029124 for an average of 0.000004029
That's tenfold speedup!
Other cases (when the transform exists) are without change.
Thanks for merging. Will you pick this up to backport into Melodic, please?
Solves #468.
Also added two more tests to speed_test to verify that this patch helps.