Skip to content

improved BigDecimal parsing performance#3992

Open
wenshao wants to merge 1 commit intomainfrom
dec_optim_20260216
Open

improved BigDecimal parsing performance#3992
wenshao wants to merge 1 commit intomainfrom
dec_optim_20260216

Conversation

@wenshao
Copy link
Copy Markdown
Member

@wenshao wenshao commented Feb 16, 2026

  • Use bit-shift operations for faster digit parsing
  • Simplify overflow detection to single check after digit loop
  • Handle exponent with combined scale to avoid string-based parsing

What this PR does / why we need it?

Summary of your change

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

- Use bit-shift operations for faster digit parsing
- Simplify overflow detection to single check after digit loop
- Handle exponent with combined scale to avoid string-based parsing

Co-authored-by: Qwen-Coder <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant