Skip to content

Commit cd4aafd

Browse files
committed
# alignment next step performance: original now perform my program test for 133704ms and my fork give more significant performance improve than before: 105259ms.
1 parent eef7133 commit cd4aafd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

include/fast_float/ascii_number.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,20 +288,18 @@ enum class parse_error : uint_fast8_t {
288288

289289
template <typename UC> struct parsed_number_string_t {
290290
am_mant_t mantissa;
291-
291+
am_pow_t exponent;
292+
UC const *lastmatch;
292293
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
293294
bool negative;
294295
#endif
295296
bool invalid;
296297
bool too_many_digits;
297298
parse_error error;
298299

299-
am_pow_t exponent;
300-
301300
// contains the range of the significant digits
302301
span<UC const> integer; // non-nullable
303302
span<UC const> fraction; // nullable
304-
UC const *lastmatch;
305303
};
306304

307305
using byte_span = span<char const>;

0 commit comments

Comments
 (0)