Support for huge memory units#663
Conversation
havocp
left a comment
There was a problem hiding this comment.
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
havocp
left a comment
There was a problem hiding this comment.
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, |
havocp
left a comment
There was a problem hiding this comment.
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 <hp@pobox.com>
|
@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