Merge branch 'perf/binary-reader-byteswap' into perf/msgpack-scalar-runs
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
2 files changed
+12
-6
No files matched your search
@@ -1148,10 +1148,8 @@ class binary_reader
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// read a single- or double-precision float (kept out of
|
/// read a single- or double-precision float
|
||||||
/// parse_cbor_value, which is inlined into parse_cbor_internal)
|
|
||||||
template<typename NumberType>
|
template<typename NumberType>
|
||||||
JSON_HEDLEY_NEVER_INLINE
|
|
||||||
bool get_cbor_float()
|
bool get_cbor_float()
|
||||||
{
|
{
|
||||||
NumberType number{};
|
NumberType number{};
|
||||||
@@ -4364,7 +4362,12 @@ class binary_reader
|
|||||||
`char_traits<char_type>::eof()` in that case.
|
`char_traits<char_type>::eof()` in that case.
|
||||||
|
|
||||||
@return character read from the input
|
@return character read from the input
|
||||||
|
|
||||||
|
@note always inlined: GCC otherwise stops inlining the stream adapter's
|
||||||
|
get_character() into parse_cbor_internal once that function grows
|
||||||
|
(+0.45 % instructions for CBOR from a std::istringstream with GCC 13)
|
||||||
*/
|
*/
|
||||||
|
JSON_HEDLEY_ALWAYS_INLINE
|
||||||
char_int_type get()
|
char_int_type get()
|
||||||
{
|
{
|
||||||
++chars_read;
|
++chars_read;
|
||||||
|
|||||||
Generated
+6
-3
@@ -18925,10 +18925,8 @@ class binary_reader
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// read a single- or double-precision float (kept out of
|
/// read a single- or double-precision float
|
||||||
/// parse_cbor_value, which is inlined into parse_cbor_internal)
|
|
||||||
template<typename NumberType>
|
template<typename NumberType>
|
||||||
JSON_HEDLEY_NEVER_INLINE
|
|
||||||
bool get_cbor_float()
|
bool get_cbor_float()
|
||||||
{
|
{
|
||||||
NumberType number{};
|
NumberType number{};
|
||||||
@@ -22141,7 +22139,12 @@ class binary_reader
|
|||||||
`char_traits<char_type>::eof()` in that case.
|
`char_traits<char_type>::eof()` in that case.
|
||||||
|
|
||||||
@return character read from the input
|
@return character read from the input
|
||||||
|
|
||||||
|
@note always inlined: GCC otherwise stops inlining the stream adapter's
|
||||||
|
get_character() into parse_cbor_internal once that function grows
|
||||||
|
(+0.45 % instructions for CBOR from a std::istringstream with GCC 13)
|
||||||
*/
|
*/
|
||||||
|
JSON_HEDLEY_ALWAYS_INLINE
|
||||||
char_int_type get()
|
char_int_type get()
|
||||||
{
|
{
|
||||||
++chars_read;
|
++chars_read;
|
||||||
|
|||||||
Reference in new issue
Block a user