You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/trino-main/src/main/java/io/trino/util/JsonUtil.java
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@
63
63
importjava.io.IOException;
64
64
importjava.io.InputStreamReader;
65
65
importjava.io.OutputStream;
66
+
importjava.io.StringReader;
66
67
importjava.math.BigDecimal;
67
68
importjava.util.ArrayList;
68
69
importjava.util.HashMap;
@@ -105,6 +106,9 @@
105
106
106
107
publicfinalclassJsonUtil
107
108
{
109
+
// StringReader outperforms InputStreamReader for small inputs. Limit based on Jackson benchmarks {@link https://github.com/FasterXML/jackson-benchmarks/pull/9}
0 commit comments