[ ] Have you added copyright headers to new files?
[ ] Have you updated the documentation?
[ ] Have you added tests for any changed functionality?
Fixes
Fixes #xxxx
Purpose
What does this PR do?
Parsing numbers from strings is expensive. This PR covers one case where a BigDecimal is converted to a String (expensive too) and then parsed again as a BigDecimal. This PR skips the final parse and just uses the BigDecimal instance that we already have.
Background Context
Why did you take this approach?
References
Are there any relevant issues / PRs / mailing lists discussions?
Pull Request Checklist
Fixes
Fixes #xxxx
Purpose
What does this PR do?
Parsing numbers from strings is expensive. This PR covers one case where a BigDecimal is converted to a String (expensive too) and then parsed again as a BigDecimal. This PR skips the final parse and just uses the BigDecimal instance that we already have.
Background Context
Why did you take this approach?
References
Are there any relevant issues / PRs / mailing lists discussions?