Skip to content

Commit 5117042

Browse files
committed
Merge branch '2.18' into 2.19
2 parents 7ea8cb8 + cbedab7 commit 5117042

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/main/java/com/fasterxml/jackson/core/StreamWriteFeature.java

+10-4
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,17 @@ public enum StreamWriteFeature
115115

116116
/**
117117
* Feature that determines whether to use standard Java code to write floats/doubles
118-
* (default) or use the Schubfach algorithm which is faster.
119-
* The latter approach may lead to small differences in the precision of the
120-
* float/double that is written to the JSON output.
118+
* (default) or use the Schubfach algorithm which may be faster (but see the next
119+
* paragraph for details).
120+
* Schubfach algorithm output may have small differences in the precision of the
121+
* float/double that compared to JDK default processing.
121122
*<p>
122-
* Feature is disabled by default, meaning that slower JDK default conversions are used.
123+
* NOTE! Enabling this feature appears to improve performance significantly
124+
* up to and including JDK 17, but NOT when using JDK 21
125+
* and above -- in fact, it seems that JDK implementation is slightly faster.
126+
* Because of this,enabling this feature is only recommended for JDKs 17 and below.
127+
*<p>
128+
* Feature is disabled by default, meaning that JDK default conversions are used.
123129
*
124130
* @since 2.14
125131
*/

0 commit comments

Comments
 (0)