Skip to content

Commit ec5259c

Browse files
committed
Merge branch '2.19'
2 parents 36cf51b + 5117042 commit ec5259c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/main/java/tools/jackson/core/StreamWriteFeature.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,18 @@ public enum StreamWriteFeature
113113
// // Misc other features
114114

115115
/**
116-
* Feature that determines whether to use standard JDK methods to write floats/doubles
117-
* or use faster Schubfach algorithm.
118-
* The latter approach may lead to small differences in the precision of the
119-
* float/double that is written to the JSON output.
116+
* Feature that determines whether to use standard Java code to write floats/doubles
117+
* (default) or use the Schubfach algorithm which may be faster (but see the next
118+
* paragraph for details).
119+
* Schubfach algorithm output may have small differences in the precision of the
120+
* float/double that compared to JDK default processing.
120121
*<p>
121-
* This setting is enabled by default (since 3.0) so that faster Schubfach
122-
* implementation is used.
122+
* NOTE! Enabling this feature appears to improve performance significantly
123+
* up to and including JDK 17, but NOT when using JDK 21
124+
* and above -- in fact, it seems that JDK implementation is slightly faster.
125+
* Because of this,enabling this feature is only recommended for JDKs 17 and below.
126+
*<p>
127+
* Feature is disabled by default, meaning that JDK default conversions are used.
123128
*/
124129
USE_FAST_DOUBLE_WRITER(false)
125130
;

0 commit comments

Comments
 (0)