File tree 1 file changed +11
-6
lines changed
src/main/java/tools/jackson/core
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -113,13 +113,18 @@ public enum StreamWriteFeature
113
113
// // Misc other features
114
114
115
115
/**
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.
120
121
*<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.
123
128
*/
124
129
USE_FAST_DOUBLE_WRITER (false )
125
130
;
You can’t perform that action at this time.
0 commit comments