File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
src/main/java/com/fasterxml/jackson/core Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments