Skip to content

Commit cbedab7

Browse files
committed
Fix #1351: Improved Javadocs for StreamWriteFeature.USE_FAST_DOUBLE_WRITER
1 parent 686dd45 commit cbedab7

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

Lines changed: 10 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy