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

More efficient decoding of arrays #1278

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ object UnsafeNumbers {
toBigDecimal(hiM10, loM10, loDigits, e10, max_bits, negate)
}

private[this] def toBigDecimal(
@noinline private[this] def toBigDecimal(
hi: java.math.BigDecimal,
lo: Long,
loDigits: Int,
Expand Down Expand Up @@ -476,7 +476,7 @@ object UnsafeNumbers {

// Based on the 'Moderate Path' algorithm from the awesome library of Alexander Huszagh: https://github.com/Alexhuszagh/rust-lexical
// Here is his inspiring post: https://www.reddit.com/r/rust/comments/a6j5j1/making_rust_float_parsing_fast_and_correct
private[this] def toDouble(m10: Long, e10: Int): Double =
@inline private[this] def toDouble(m10: Long, e10: Int): Double =
if (m10 == 0 || e10 < -343) 0.0
else if (e10 >= 310) Double.PositiveInfinity
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ object UnsafeNumbers {
toBigDecimal(hiM10, loM10, loDigits, e10, max_bits, negate)
}

private[this] def toBigDecimal(
@noinline private[this] def toBigDecimal(
hi: java.math.BigDecimal,
lo: Long,
loDigits: Int,
Expand Down Expand Up @@ -344,7 +344,7 @@ object UnsafeNumbers {

// Based on the 'Moderate Path' algorithm from the awesome library of Alexander Huszagh: https://github.com/Alexhuszagh/rust-lexical
// Here is his inspiring post: https://www.reddit.com/r/rust/comments/a6j5j1/making_rust_float_parsing_fast_and_correct
private[this] def toFloat(m10: Long, e10: Int): Float =
@noinline private[this] def toFloat(m10: Long, e10: Int): Float =
if (m10 == 0 || e10 < -64) 0.0f
else if (e10 >= 39) Float.PositiveInfinity
else {
Expand Down Expand Up @@ -476,7 +476,7 @@ object UnsafeNumbers {

// Based on the 'Moderate Path' algorithm from the awesome library of Alexander Huszagh: https://github.com/Alexhuszagh/rust-lexical
// Here is his inspiring post: https://www.reddit.com/r/rust/comments/a6j5j1/making_rust_float_parsing_fast_and_correct
private[this] def toDouble(m10: Long, e10: Int): Double =
@inline private[this] def toDouble(m10: Long, e10: Int): Double =
if (m10 == 0 || e10 < -343) 0.0
else if (e10 >= 310) Double.PositiveInfinity
else {
Expand Down
Loading