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

Performance problem with long BigInteger coerced into int, long with textual formats #2157

Closed
cowtowncoder opened this issue Oct 16, 2018 · 1 comment

Comments

@cowtowncoder
Copy link
Member

(note: possibly belongs to jackson-core)

Beyond #2141 there is actually bigger problem that very long BigIntegers are slow to coerce/convert into other types.

One example is that Enums may be deserialized from integers, and although eventual type expected is int, integral numbers longer than maximum that fits in long (22+ digits or whatever limit is) are decoded as BigIntegers. And although bounds-checks will catch the problem eventually, turns out that performance issue is severe during processing.

So... we should catch this at lower layer, at least for textual formats.

@cowtowncoder
Copy link
Member Author

Fixed for 2.9.8

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

No branches or pull requests

1 participant