-
Notifications
You must be signed in to change notification settings - Fork 967
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
Support for huge memory units #663
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me overall, I think my main suggestion is I'd lean toward removing the code duplication, even if it means we allocate a BigInteger only to range check it and then convert to Long.
config/src/main/java/com/typesafe/config/impl/SimpleConfig.java
Outdated
Show resolved
Hide resolved
config/src/main/java/com/typesafe/config/impl/SimpleConfig.java
Outdated
Show resolved
Hide resolved
config/src/main/java/com/typesafe/config/impl/SimpleConfig.java
Outdated
Show resolved
Hide resolved
config/src/main/java/com/typesafe/config/impl/SimpleConfig.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! Main remaining issue I think is an ABI break if we go from BadValue=>IllegalArgumentException in a couple of places.
config/src/main/java/com/typesafe/config/impl/SimpleConfig.java
Outdated
Show resolved
Hide resolved
config/src/main/java/com/typesafe/config/impl/SimpleConfig.java
Outdated
Show resolved
Hide resolved
config/src/main/java/com/typesafe/config/impl/SimpleConfig.java
Outdated
Show resolved
Hide resolved
…hen reading bytes and memorysize values
Hello @havocp, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience - this looks great to me!
config/src/main/java/com/typesafe/config/impl/SimpleConfig.java
Outdated
Show resolved
Hide resolved
Co-Authored-By: Havoc Pennington <[email protected]>
@havocp thank you so much! Looking forward to having it merged when you have time. |
Hello @havocp , |
Thanks! Appreciate the work on this. I don't know when Lightbend will next make a release. |
Added support for memory units which don't fit in a long when transformed to bytes.
closes #172