Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception message generation uses too much memory #1333

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

pjfanning
Copy link
Member

I've looking at issues in BigDecimalParser and noticed that the exception message code that is meant to protect us from consuming too much memory is not efficient enough.

This PR adds methods to handle char arrays and avoids creating Strings for the potentially large arrays.

Copy link
Member

@cowtowncoder cowtowncoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch & thank you for doing smaller PRs to isolate work-arounds from long-term improvements.

@cowtowncoder cowtowncoder merged commit f90ba05 into FasterXML:2.18 Sep 12, 2024
9 checks passed
@pjfanning pjfanning deleted the exception-handling-weakness branch September 12, 2024 08:30
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.

2 participants