File tree 1 file changed +10
-4
lines changed
src/main/java/com/fasterxml/jackson/core
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,17 @@ public enum StreamWriteFeature
115
115
116
116
/**
117
117
* 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.
121
122
*<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.
123
129
*
124
130
* @since 2.14
125
131
*/
You can’t perform that action at this time.
0 commit comments