From 924b0f6082acdada1b68763e6ad0b0d557b9f201 Mon Sep 17 00:00:00 2001 From: MacroModel <33865334+MacroModel@users.noreply.github.com> Date: Mon, 25 Nov 2024 12:36:40 +0800 Subject: [PATCH] It seems that it is unnecessary to read 4-bit data in 11-hexadecimal system, and the time for 4-bit data reading of this algorithm even exceeds 4 times of cyclic reading --- include/fast_io_core_impl/integers/sto/sto_contiguous.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/fast_io_core_impl/integers/sto/sto_contiguous.h b/include/fast_io_core_impl/integers/sto/sto_contiguous.h index 07feb4d8..494e0b30 100644 --- a/include/fast_io_core_impl/integers/sto/sto_contiguous.h +++ b/include/fast_io_core_impl/integers/sto/sto_contiguous.h @@ -650,6 +650,10 @@ scan_int_contiguous_none_simd_space_part_define_impl(char_type const *first, cha first += sizeof(::std::uint_least64_t); } } + +// It seems that it is unnecessary to read 4-bit data in base11-hexadecimal system, +// and the time for 4-bit data reading of this algorithm even exceeds 4 times of cyclic reading +#if 0 if constexpr (max_size >= sizeof(::std::uint_least32_t)) { if (static_cast<::std::size_t>(first_phase_last - first) >= sizeof(::std::uint_least32_t)) @@ -682,6 +686,7 @@ scan_int_contiguous_none_simd_space_part_define_impl(char_type const *first, cha } } } +#endif } } }