From 1a00acae1f35b8397b3d2b95ce2aedd8dafc8f57 Mon Sep 17 00:00:00 2001 From: plokhotnyuk Date: Wed, 13 Mar 2024 18:30:37 +0100 Subject: [PATCH] Fix performance issues in jackson-module-scala, weePickle, and json4s with jackson, see https://github.com/FasterXML/jackson-module-scala/issues/672 --- .../jsoniter_scala/benchmark/ADTReading.scala | 1 - .../jsoniter_scala/benchmark/AnyValsReading.scala | 1 - .../benchmark/ArrayBufferOfBooleansReading.scala | 2 +- .../benchmark/ArrayOfBigDecimalsReading.scala | 2 +- .../benchmark/ArrayOfBigIntsReading.scala | 2 +- .../benchmark/ArrayOfBooleansReading.scala | 2 +- .../benchmark/ArrayOfBytesReading.scala | 2 +- .../benchmark/ArrayOfCharsReading.scala | 2 +- .../benchmark/ArrayOfDoublesReading.scala | 2 +- .../benchmark/ArrayOfDurationsReading.scala | 1 - .../benchmark/ArrayOfEnumADTsReading.scala | 1 - .../benchmark/ArrayOfEnumsReading.scala | 1 - .../benchmark/ArrayOfFloatsReading.scala | 2 +- .../benchmark/ArrayOfInstantsReading.scala | 2 +- .../benchmark/ArrayOfIntsReading.scala | 2 +- .../benchmark/ArrayOfJavaEnumsReading.scala | 1 - .../benchmark/ArrayOfLocalDateTimesReading.scala | 2 +- .../benchmark/ArrayOfLocalDatesReading.scala | 2 +- .../benchmark/ArrayOfLocalTimesReading.scala | 2 +- .../benchmark/ArrayOfLongsReading.scala | 2 +- .../benchmark/ArrayOfMonthDaysReading.scala | 1 - .../benchmark/ArrayOfOffsetDateTimesReading.scala | 2 +- .../benchmark/ArrayOfOffsetTimesReading.scala | 1 - .../benchmark/ArrayOfPeriodsReading.scala | 1 - .../benchmark/ArrayOfShortsReading.scala | 2 +- .../benchmark/ArrayOfUUIDsReading.scala | 2 +- .../benchmark/ArrayOfYearMonthsReading.scala | 1 - .../benchmark/ArrayOfYearsReading.scala | 1 - .../benchmark/ArrayOfZoneIdsReading.scala | 1 - .../benchmark/ArrayOfZoneOffsetsReading.scala | 1 - .../benchmark/ArrayOfZonedDateTimesReading.scala | 2 +- .../benchmark/ArraySeqOfBooleansReading.scala | 2 +- .../jsoniter_scala/benchmark/Base64Reading.scala | 2 +- .../jsoniter_scala/benchmark/BigDecimalReading.scala | 2 +- .../jsoniter_scala/benchmark/BigIntReading.scala | 2 +- .../benchmark/ExtractFieldsReading.scala | 1 - .../jsoniter_scala/benchmark/GeoJSONReading.scala | 1 - .../benchmark/GitHubActionsAPIReading.scala | 1 - .../benchmark/GoogleMapsAPIReading.scala | 1 - .../jsoniter_scala/benchmark/IntReading.scala | 2 +- .../benchmark/ListOfBooleansReading.scala | 2 +- .../benchmark/MapOfIntsToBooleansReading.scala | 2 +- .../benchmark/MissingRequiredFieldsReading.scala | 1 - .../MutableMapOfIntsToBooleansReading.scala | 2 +- .../benchmark/MutableSetOfIntsReading.scala | 2 +- .../benchmark/NestedStructsReading.scala | 1 - .../jsoniter_scala/benchmark/OpenRTBReading.scala | 1 - .../jsoniter_scala/benchmark/PrimitivesReading.scala | 1 - .../jsoniter_scala/benchmark/SetOfIntsReading.scala | 2 +- .../benchmark/StringOfAsciiCharsReading.scala | 2 +- .../benchmark/StringOfEscapedCharsReading.scala | 2 +- .../benchmark/StringOfNonAsciiCharsReading.scala | 2 +- .../jsoniter_scala/benchmark/TwitterAPIReading.scala | 1 - .../benchmark/VectorOfBooleansReading.scala | 2 +- .../jsoniter_scala/benchmark/ADTReading.scala | 1 - .../jsoniter_scala/benchmark/AnyValsReading.scala | 1 - .../benchmark/ArrayBufferOfBooleansReading.scala | 2 +- .../benchmark/ArrayOfBigDecimalsReading.scala | 2 +- .../benchmark/ArrayOfBigIntsReading.scala | 2 +- .../benchmark/ArrayOfBooleansReading.scala | 2 +- .../benchmark/ArrayOfBytesReading.scala | 2 +- .../benchmark/ArrayOfCharsReading.scala | 2 +- .../benchmark/ArrayOfDoublesReading.scala | 2 +- .../benchmark/ArrayOfDurationsReading.scala | 1 - .../benchmark/ArrayOfEnumADTsReading.scala | 1 - .../benchmark/ArrayOfEnumsReading.scala | 1 - .../benchmark/ArrayOfFloatsReading.scala | 2 +- .../benchmark/ArrayOfInstantsReading.scala | 2 +- .../benchmark/ArrayOfIntsReading.scala | 2 +- .../benchmark/ArrayOfJavaEnumsReading.scala | 1 - .../benchmark/ArrayOfLocalDateTimesReading.scala | 2 +- .../benchmark/ArrayOfLocalDatesReading.scala | 2 +- .../benchmark/ArrayOfLocalTimesReading.scala | 2 +- .../benchmark/ArrayOfLongsReading.scala | 2 +- .../benchmark/ArrayOfMonthDaysReading.scala | 1 - .../benchmark/ArrayOfOffsetDateTimesReading.scala | 2 +- .../benchmark/ArrayOfOffsetTimesReading.scala | 1 - .../benchmark/ArrayOfPeriodsReading.scala | 1 - .../benchmark/ArrayOfShortsReading.scala | 2 +- .../benchmark/ArrayOfUUIDsReading.scala | 2 +- .../benchmark/ArrayOfYearMonthsReading.scala | 1 - .../benchmark/ArrayOfYearsReading.scala | 1 - .../benchmark/ArrayOfZoneIdsReading.scala | 1 - .../benchmark/ArrayOfZoneOffsetsReading.scala | 1 - .../benchmark/ArrayOfZonedDateTimesReading.scala | 2 +- .../benchmark/ArraySeqOfBooleansReading.scala | 2 +- .../jsoniter_scala/benchmark/Base64Reading.scala | 2 +- .../jsoniter_scala/benchmark/BigDecimalReading.scala | 2 +- .../jsoniter_scala/benchmark/BigIntReading.scala | 2 +- .../benchmark/ExtractFieldsReading.scala | 1 - .../jsoniter_scala/benchmark/GeoJSONReading.scala | 1 - .../benchmark/GitHubActionsAPIReading.scala | 1 - .../benchmark/GoogleMapsAPIReading.scala | 1 - .../jsoniter_scala/benchmark/IntReading.scala | 2 +- .../benchmark/ListOfBooleansReading.scala | 2 +- .../benchmark/MapOfIntsToBooleansReading.scala | 2 +- .../benchmark/MissingRequiredFieldsReading.scala | 1 - .../MutableMapOfIntsToBooleansReading.scala | 2 +- .../benchmark/MutableSetOfIntsReading.scala | 2 +- .../benchmark/NestedStructsReading.scala | 1 - .../jsoniter_scala/benchmark/OpenRTBReading.scala | 1 - .../jsoniter_scala/benchmark/PrimitivesReading.scala | 1 - .../jsoniter_scala/benchmark/SetOfIntsReading.scala | 2 +- .../benchmark/StringOfAsciiCharsReading.scala | 2 +- .../benchmark/StringOfEscapedCharsReading.scala | 2 +- .../benchmark/StringOfNonAsciiCharsReading.scala | 2 +- .../jsoniter_scala/benchmark/TwitterAPIReading.scala | 1 - .../benchmark/VectorOfBooleansReading.scala | 2 +- .../jsoniter_scala/benchmark/JacksonSerDesers.scala | 3 ++- .../jsoniter_scala/benchmark/Json4sFormats.scala | 1 + .../jsoniter_scala/benchmark/WeePickleFromTos.scala | 12 ++++++++---- 111 files changed, 75 insertions(+), 113 deletions(-) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ADTReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ADTReading.scala index 4d48d5031..d1cb1e2be 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ADTReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ADTReading.scala @@ -115,7 +115,6 @@ class ADTReading extends ADTBenchmark { @Benchmark def weePickle(): ADTBase = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[ADTBase]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/AnyValsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/AnyValsReading.scala index 60cf198e1..fb5a2edaa 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/AnyValsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/AnyValsReading.scala @@ -122,7 +122,6 @@ class AnyValsReading extends AnyValsBenchmark { @Benchmark def weePickle(): AnyVals = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[AnyVals]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayBufferOfBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayBufferOfBooleansReading.scala index 7ec89c038..a5b78ef6d 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayBufferOfBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayBufferOfBooleansReading.scala @@ -108,7 +108,7 @@ class ArrayBufferOfBooleansReading extends ArrayBufferOfBooleansBenchmark { @Benchmark def weePickle(): mutable.ArrayBuffer[Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[mutable.ArrayBuffer[Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigDecimalsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigDecimalsReading.scala index 2474ba052..e73dfb39c 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigDecimalsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigDecimalsReading.scala @@ -117,7 +117,7 @@ class ArrayOfBigDecimalsReading extends ArrayOfBigDecimalsBenchmark { @Benchmark def weePickle(): Array[BigDecimal] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[BigDecimal]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigIntsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigIntsReading.scala index d1d67ed70..5ad9f3ec5 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigIntsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigIntsReading.scala @@ -110,7 +110,7 @@ class ArrayOfBigIntsReading extends ArrayOfBigIntsBenchmark { @Benchmark def weePickle(): Array[BigInt] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[BigInt]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBooleansReading.scala index 27b95fbdc..38d921b28 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBooleansReading.scala @@ -115,7 +115,7 @@ class ArrayOfBooleansReading extends ArrayOfBooleansBenchmark { @Benchmark def weePickle(): Array[Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBytesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBytesReading.scala index 759e24292..8cdef30ba 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBytesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBytesReading.scala @@ -116,7 +116,7 @@ class ArrayOfBytesReading extends ArrayOfBytesBenchmark { @Benchmark def weePickle(): Array[Byte] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Byte]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfCharsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfCharsReading.scala index 16841b007..e2bba164b 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfCharsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfCharsReading.scala @@ -103,7 +103,7 @@ class ArrayOfCharsReading extends ArrayOfCharsBenchmark { @Benchmark def weePickle(): Array[Char] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Char]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDoublesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDoublesReading.scala index 3f6011aae..0d0d96fb6 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDoublesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDoublesReading.scala @@ -115,7 +115,7 @@ class ArrayOfDoublesReading extends ArrayOfDoublesBenchmark { @Benchmark def weePickle(): Array[Double] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Double]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDurationsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDurationsReading.scala index c1d0e77d8..d6a4a718a 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDurationsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDurationsReading.scala @@ -106,7 +106,6 @@ class ArrayOfDurationsReading extends ArrayOfDurationsBenchmark { @Benchmark def weePickle(): Array[Duration] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Duration]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumADTsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumADTsReading.scala index 3079780a3..f1154a1db 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumADTsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumADTsReading.scala @@ -114,7 +114,6 @@ class ArrayOfEnumADTsReading extends ArrayOfEnumADTsBenchmark { @Benchmark def weePickle(): Array[SuitADT] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[SuitADT]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumsReading.scala index 9c4e08c48..cc31f4d3e 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumsReading.scala @@ -108,7 +108,6 @@ class ArrayOfEnumsReading extends ArrayOfEnumsBenchmark { @Benchmark def weePickle(): Array[SuitEnum] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[SuitEnum]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfFloatsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfFloatsReading.scala index ac14c3217..a761c6793 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfFloatsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfFloatsReading.scala @@ -116,7 +116,7 @@ class ArrayOfFloatsReading extends ArrayOfFloatsBenchmark { @Benchmark def weePickle(): Array[Float] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Float]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfInstantsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfInstantsReading.scala index 283710ca5..e1c8b13f3 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfInstantsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfInstantsReading.scala @@ -113,7 +113,7 @@ class ArrayOfInstantsReading extends ArrayOfInstantsBenchmark { @Benchmark def weePickle(): Array[Instant] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Instant]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfIntsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfIntsReading.scala index c2c3acacd..dbe2a3224 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfIntsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfIntsReading.scala @@ -115,7 +115,7 @@ class ArrayOfIntsReading extends ArrayOfIntsBenchmark { @Benchmark def weePickle(): Array[Int] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Int]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfJavaEnumsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfJavaEnumsReading.scala index c90cd978d..911f9b81e 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfJavaEnumsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfJavaEnumsReading.scala @@ -113,7 +113,6 @@ class ArrayOfJavaEnumsReading extends ArrayOfJavaEnumsBenchmark { @Benchmark def weePickle(): Array[Suit] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Suit]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDateTimesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDateTimesReading.scala index 489729a1f..dd774ae69 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDateTimesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDateTimesReading.scala @@ -112,7 +112,7 @@ class ArrayOfLocalDateTimesReading extends ArrayOfLocalDateTimesBenchmark { @Benchmark def weePickle(): Array[LocalDateTime] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[LocalDateTime]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDatesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDatesReading.scala index 768107f5d..58d729087 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDatesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDatesReading.scala @@ -112,7 +112,7 @@ class ArrayOfLocalDatesReading extends ArrayOfLocalDatesBenchmark { @Benchmark def weePickle(): Array[LocalDate] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[LocalDate]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalTimesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalTimesReading.scala index 8ccfb118c..5549155bd 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalTimesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalTimesReading.scala @@ -113,7 +113,7 @@ class ArrayOfLocalTimesReading extends ArrayOfLocalTimesBenchmark { @Benchmark def weePickle(): Array[LocalTime] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[LocalTime]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLongsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLongsReading.scala index fee0c230c..b97e73870 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLongsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLongsReading.scala @@ -115,7 +115,7 @@ class ArrayOfLongsReading extends ArrayOfLongsBenchmark { @Benchmark def weePickle(): Array[Long] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Long]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfMonthDaysReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfMonthDaysReading.scala index 62d21baaa..4f234d063 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfMonthDaysReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfMonthDaysReading.scala @@ -106,7 +106,6 @@ class ArrayOfMonthDaysReading extends ArrayOfMonthDaysBenchmark { @Benchmark def weePickle(): Array[MonthDay] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[MonthDay]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetDateTimesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetDateTimesReading.scala index ec95d2fa7..d9635f5f0 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetDateTimesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetDateTimesReading.scala @@ -112,7 +112,7 @@ class ArrayOfOffsetDateTimesReading extends ArrayOfOffsetDateTimesBenchmark { @Benchmark def weePickle(): Array[OffsetDateTime] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[OffsetDateTime]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetTimesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetTimesReading.scala index f0f6ca55c..fec5c87c5 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetTimesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetTimesReading.scala @@ -113,7 +113,6 @@ class ArrayOfOffsetTimesReading extends ArrayOfOffsetTimesBenchmark { @Benchmark def weePickle(): Array[OffsetTime] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[OffsetTime]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfPeriodsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfPeriodsReading.scala index e7a4cb574..15f62f411 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfPeriodsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfPeriodsReading.scala @@ -106,7 +106,6 @@ class ArrayOfPeriodsReading extends ArrayOfPeriodsBenchmark { @Benchmark def weePickle(): Array[Period] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Period]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfShortsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfShortsReading.scala index 830fbbf30..d27316d5d 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfShortsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfShortsReading.scala @@ -115,7 +115,7 @@ class ArrayOfShortsReading extends ArrayOfShortsBenchmark { @Benchmark def weePickle(): Array[Short] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Short]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfUUIDsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfUUIDsReading.scala index af30be261..9f2cfcbd2 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfUUIDsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfUUIDsReading.scala @@ -118,7 +118,7 @@ class ArrayOfUUIDsReading extends ArrayOfUUIDsBenchmark { @Benchmark def weePickle(): Array[UUID] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[UUID]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearMonthsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearMonthsReading.scala index dcf931523..23a19451d 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearMonthsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearMonthsReading.scala @@ -106,7 +106,6 @@ class ArrayOfYearMonthsReading extends ArrayOfYearMonthsBenchmark { @Benchmark def weePickle(): Array[YearMonth] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[YearMonth]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearsReading.scala index 2bb28084f..3ae037d59 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearsReading.scala @@ -106,7 +106,6 @@ class ArrayOfYearsReading extends ArrayOfYearsBenchmark { @Benchmark def weePickle(): Array[Year] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Year]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneIdsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneIdsReading.scala index 52186eebf..661261bbd 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneIdsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneIdsReading.scala @@ -106,7 +106,6 @@ class ArrayOfZoneIdsReading extends ArrayOfZoneIdsBenchmark { @Benchmark def weePickle(): Array[ZoneId] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[ZoneId]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneOffsetsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneOffsetsReading.scala index 1a3d2a0fe..db67c47ee 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneOffsetsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneOffsetsReading.scala @@ -106,7 +106,6 @@ class ArrayOfZoneOffsetsReading extends ArrayOfZoneOffsetsBenchmark { @Benchmark def weePickle(): Array[ZoneOffset] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[ZoneOffset]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZonedDateTimesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZonedDateTimesReading.scala index bdd10e76c..f22640d5a 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZonedDateTimesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZonedDateTimesReading.scala @@ -110,7 +110,7 @@ class ArrayOfZonedDateTimesReading extends ArrayOfZonedDateTimesBenchmark { @Benchmark def weePickle(): Array[ZonedDateTime] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[ZonedDateTime]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArraySeqOfBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArraySeqOfBooleansReading.scala index 9ea91306f..009594a21 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArraySeqOfBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArraySeqOfBooleansReading.scala @@ -117,7 +117,7 @@ class ArraySeqOfBooleansReading extends ArraySeqOfBooleansBenchmark { @Benchmark def weePickle(): ArraySeq[Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[ArraySeq[Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/Base64Reading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/Base64Reading.scala index b47806f89..3616e135d 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/Base64Reading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/Base64Reading.scala @@ -121,7 +121,7 @@ class Base64Reading extends Base64Benchmark { @Benchmark def weePickle(): Array[Byte] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Byte]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigDecimalReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigDecimalReading.scala index bbbf64ded..440809a73 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigDecimalReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigDecimalReading.scala @@ -110,7 +110,7 @@ class BigDecimalReading extends BigDecimalBenchmark { @Benchmark def weePickle(): BigDecimal = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[BigDecimal]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigIntReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigIntReading.scala index 8318faa9b..97ebf4c67 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigIntReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigIntReading.scala @@ -109,7 +109,7 @@ class BigIntReading extends BigIntBenchmark { @Benchmark def weePickle(): BigInt = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[BigInt]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ExtractFieldsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ExtractFieldsReading.scala index 3dc4381a0..972eebb3f 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ExtractFieldsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ExtractFieldsReading.scala @@ -122,7 +122,6 @@ class ExtractFieldsReading extends ExtractFieldsBenchmark { @Benchmark def weePickle(): ExtractFields = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[ExtractFields]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GeoJSONReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GeoJSONReading.scala index 376e37194..62087a6b2 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GeoJSONReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GeoJSONReading.scala @@ -115,7 +115,6 @@ class GeoJSONReading extends GeoJSONBenchmark { @Benchmark def weePickle(): GeoJSON = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[GeoJSON]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GitHubActionsAPIReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GitHubActionsAPIReading.scala index f32ffd67d..dadce9aa1 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GitHubActionsAPIReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GitHubActionsAPIReading.scala @@ -114,7 +114,6 @@ class GitHubActionsAPIReading extends GitHubActionsAPIBenchmark { @Benchmark def weePickle(): GitHubActionsAPI.Response = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[GitHubActionsAPI.Response]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIReading.scala index 58d6a3487..caf110d1a 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIReading.scala @@ -123,7 +123,6 @@ class GoogleMapsAPIReading extends GoogleMapsAPIBenchmark { @Benchmark def weePickle(): DistanceMatrix = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[DistanceMatrix]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/IntReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/IntReading.scala index 96ffc2e29..f7aecef10 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/IntReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/IntReading.scala @@ -115,7 +115,7 @@ class IntReading extends IntBenchmark { @Benchmark def weePickle(): Int = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Int]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ListOfBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ListOfBooleansReading.scala index c5799f3ed..e5783f3a8 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ListOfBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ListOfBooleansReading.scala @@ -115,7 +115,7 @@ class ListOfBooleansReading extends ListOfBooleansBenchmark { @Benchmark def weePickle(): List[Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[List[Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MapOfIntsToBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MapOfIntsToBooleansReading.scala index 2c9edd5b9..cbea40551 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MapOfIntsToBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MapOfIntsToBooleansReading.scala @@ -109,7 +109,7 @@ class MapOfIntsToBooleansReading extends MapOfIntsToBooleansBenchmark { */ @Benchmark def weePickle(): Map[Int, Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Map[Int, Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MissingRequiredFieldsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MissingRequiredFieldsReading.scala index a7fb119c2..6938c36cc 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MissingRequiredFieldsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MissingRequiredFieldsReading.scala @@ -201,7 +201,6 @@ class MissingRequiredFieldsReading extends MissingRequiredFieldsBenchmark { @Benchmark def weePickle(): String = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala import com.rallyhealth.weepickle.v1.core.TransformException diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableMapOfIntsToBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableMapOfIntsToBooleansReading.scala index 376a29afa..8dcc55f4e 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableMapOfIntsToBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableMapOfIntsToBooleansReading.scala @@ -89,7 +89,7 @@ class MutableMapOfIntsToBooleansReading extends MutableMapOfIntsToBooleansBenchm @Benchmark def weePickle(): mutable.Map[Int, Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[mutable.Map[Int, Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableSetOfIntsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableSetOfIntsReading.scala index 7c004ca75..3c4901272 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableSetOfIntsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableSetOfIntsReading.scala @@ -100,7 +100,7 @@ class MutableSetOfIntsReading extends MutableSetOfIntsBenchmark { @Benchmark def weePickle(): mutable.Set[Int] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[mutable.Set[Int]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/NestedStructsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/NestedStructsReading.scala index ec8542c48..7dba236e7 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/NestedStructsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/NestedStructsReading.scala @@ -122,7 +122,6 @@ class NestedStructsReading extends NestedStructsBenchmark { @Benchmark def weePickle(): NestedStructs = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[NestedStructs]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/OpenRTBReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/OpenRTBReading.scala index b3adaa3ea..28b51a267 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/OpenRTBReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/OpenRTBReading.scala @@ -116,7 +116,6 @@ class OpenRTBReading extends OpenRTBBenchmark { @Benchmark def weePickle(): BidRequest = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[BidRequest]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/PrimitivesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/PrimitivesReading.scala index 86b569f10..819226d22 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/PrimitivesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/PrimitivesReading.scala @@ -122,7 +122,6 @@ class PrimitivesReading extends PrimitivesBenchmark { @Benchmark def weePickle(): Primitives = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Primitives]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/SetOfIntsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/SetOfIntsReading.scala index a768e5801..36dba1aa3 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/SetOfIntsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/SetOfIntsReading.scala @@ -115,7 +115,7 @@ class SetOfIntsReading extends SetOfIntsBenchmark { @Benchmark def weePickle(): Set[Int] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Set[Int]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfAsciiCharsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfAsciiCharsReading.scala index 43909eaed..e44f4a101 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfAsciiCharsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfAsciiCharsReading.scala @@ -116,7 +116,7 @@ class StringOfAsciiCharsReading extends StringOfAsciiCharsBenchmark { @Benchmark def weePickle(): String = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[String]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfEscapedCharsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfEscapedCharsReading.scala index 0a63fc80a..e70c47c2a 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfEscapedCharsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfEscapedCharsReading.scala @@ -116,7 +116,7 @@ class StringOfEscapedCharsReading extends StringOfEscapedCharsBenchmark { @Benchmark def weePickle(): String = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[String]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfNonAsciiCharsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfNonAsciiCharsReading.scala index 77e5bff30..fdf0fda14 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfNonAsciiCharsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfNonAsciiCharsReading.scala @@ -116,7 +116,7 @@ class StringOfNonAsciiCharsReading extends StringOfNonAsciiCharsBenchmark { @Benchmark def weePickle(): String = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[String]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/TwitterAPIReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/TwitterAPIReading.scala index 930b22d91..0a8fc8b00 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/TwitterAPIReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/TwitterAPIReading.scala @@ -123,7 +123,6 @@ class TwitterAPIReading extends TwitterAPIBenchmark { @Benchmark def weePickle(): Seq[Tweet] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Seq[Tweet]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/VectorOfBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/VectorOfBooleansReading.scala index c0d070e20..1f99981fd 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/VectorOfBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/VectorOfBooleansReading.scala @@ -115,7 +115,7 @@ class VectorOfBooleansReading extends VectorOfBooleansBenchmark { @Benchmark def weePickle(): Vector[Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Vector[Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ADTReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ADTReading.scala index 23ec5fb65..0d13e25db 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ADTReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ADTReading.scala @@ -108,7 +108,6 @@ class ADTReading extends ADTBenchmark { @Benchmark def weePickle(): ADTBase = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[ADTBase]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/AnyValsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/AnyValsReading.scala index 8476696d5..a719df4b7 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/AnyValsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/AnyValsReading.scala @@ -108,7 +108,6 @@ class AnyValsReading extends AnyValsBenchmark { @Benchmark def weePickle(): AnyVals = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[AnyVals]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayBufferOfBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayBufferOfBooleansReading.scala index e8fcf1120..5016b0204 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayBufferOfBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayBufferOfBooleansReading.scala @@ -95,7 +95,7 @@ class ArrayBufferOfBooleansReading extends ArrayBufferOfBooleansBenchmark { @Benchmark def weePickle(): mutable.ArrayBuffer[Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[mutable.ArrayBuffer[Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigDecimalsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigDecimalsReading.scala index 8aba16c06..e90f0a41d 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigDecimalsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigDecimalsReading.scala @@ -103,7 +103,7 @@ class ArrayOfBigDecimalsReading extends ArrayOfBigDecimalsBenchmark { @Benchmark def weePickle(): Array[BigDecimal] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[BigDecimal]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigIntsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigIntsReading.scala index a041b5bc4..71854f479 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigIntsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigIntsReading.scala @@ -97,7 +97,7 @@ class ArrayOfBigIntsReading extends ArrayOfBigIntsBenchmark { @Benchmark def weePickle(): Array[BigInt] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[BigInt]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBooleansReading.scala index 1681544cc..ed42c983f 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBooleansReading.scala @@ -102,7 +102,7 @@ class ArrayOfBooleansReading extends ArrayOfBooleansBenchmark { @Benchmark def weePickle(): Array[Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBytesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBytesReading.scala index df23b515d..f641337ed 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBytesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBytesReading.scala @@ -103,7 +103,7 @@ class ArrayOfBytesReading extends ArrayOfBytesBenchmark { @Benchmark def weePickle(): Array[Byte] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Byte]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfCharsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfCharsReading.scala index 861fa1760..3d3989419 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfCharsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfCharsReading.scala @@ -97,7 +97,7 @@ class ArrayOfCharsReading extends ArrayOfCharsBenchmark { @Benchmark def weePickle(): Array[Char] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Char]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDoublesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDoublesReading.scala index a5e00476d..4419f6781 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDoublesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDoublesReading.scala @@ -102,7 +102,7 @@ class ArrayOfDoublesReading extends ArrayOfDoublesBenchmark { @Benchmark def weePickle(): Array[Double] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Double]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDurationsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDurationsReading.scala index 9bf2e7af8..6e50cf710 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDurationsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDurationsReading.scala @@ -99,7 +99,6 @@ class ArrayOfDurationsReading extends ArrayOfDurationsBenchmark { @Benchmark def weePickle(): Array[Duration] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Duration]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumADTsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumADTsReading.scala index 0ae493880..9dfdd1b13 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumADTsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumADTsReading.scala @@ -100,7 +100,6 @@ class ArrayOfEnumADTsReading extends ArrayOfEnumADTsBenchmark { @Benchmark def weePickle(): Array[SuitADT] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[SuitADT]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumsReading.scala index 5e26fc98d..647de66f9 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfEnumsReading.scala @@ -101,7 +101,6 @@ class ArrayOfEnumsReading extends ArrayOfEnumsBenchmark { @Benchmark def weePickle(): Array[SuitEnum] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[SuitEnum]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfFloatsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfFloatsReading.scala index 8911fa409..5b5d4f4b6 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfFloatsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfFloatsReading.scala @@ -110,7 +110,7 @@ class ArrayOfFloatsReading extends ArrayOfFloatsBenchmark { @Benchmark def weePickle(): Array[Float] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Float]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfInstantsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfInstantsReading.scala index f2faa0672..64b5f605d 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfInstantsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfInstantsReading.scala @@ -106,7 +106,7 @@ class ArrayOfInstantsReading extends ArrayOfInstantsBenchmark { @Benchmark def weePickle(): Array[Instant] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Instant]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfIntsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfIntsReading.scala index 2cc15e27e..25f6bfd2c 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfIntsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfIntsReading.scala @@ -102,7 +102,7 @@ class ArrayOfIntsReading extends ArrayOfIntsBenchmark { @Benchmark def weePickle(): Array[Int] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Int]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfJavaEnumsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfJavaEnumsReading.scala index 21ad0e71e..ffbecf32f 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfJavaEnumsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfJavaEnumsReading.scala @@ -100,7 +100,6 @@ class ArrayOfJavaEnumsReading extends ArrayOfJavaEnumsBenchmark { @Benchmark def weePickle(): Array[Suit] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Suit]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDateTimesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDateTimesReading.scala index cb8aa56eb..aaf889929 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDateTimesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDateTimesReading.scala @@ -98,7 +98,7 @@ class ArrayOfLocalDateTimesReading extends ArrayOfLocalDateTimesBenchmark { @Benchmark def weePickle(): Array[LocalDateTime] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[LocalDateTime]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDatesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDatesReading.scala index 499ad6317..998322c89 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDatesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalDatesReading.scala @@ -98,7 +98,7 @@ class ArrayOfLocalDatesReading extends ArrayOfLocalDatesBenchmark { @Benchmark def weePickle(): Array[LocalDate] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[LocalDate]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalTimesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalTimesReading.scala index 2268c11f1..5cbc13f3f 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalTimesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLocalTimesReading.scala @@ -99,7 +99,7 @@ class ArrayOfLocalTimesReading extends ArrayOfLocalTimesBenchmark { @Benchmark def weePickle(): Array[LocalTime] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[LocalTime]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLongsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLongsReading.scala index 9c1072478..bb3a5043e 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLongsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfLongsReading.scala @@ -102,7 +102,7 @@ class ArrayOfLongsReading extends ArrayOfLongsBenchmark { @Benchmark def weePickle(): Array[Long] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Long]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfMonthDaysReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfMonthDaysReading.scala index f196444f6..82dd4b8e6 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfMonthDaysReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfMonthDaysReading.scala @@ -99,7 +99,6 @@ class ArrayOfMonthDaysReading extends ArrayOfMonthDaysBenchmark { @Benchmark def weePickle(): Array[MonthDay] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[MonthDay]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetDateTimesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetDateTimesReading.scala index 17bda9d9c..fc62cd498 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetDateTimesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetDateTimesReading.scala @@ -98,7 +98,7 @@ class ArrayOfOffsetDateTimesReading extends ArrayOfOffsetDateTimesBenchmark { @Benchmark def weePickle(): Array[OffsetDateTime] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[OffsetDateTime]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetTimesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetTimesReading.scala index aa73cd36c..ed3f9ac12 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetTimesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfOffsetTimesReading.scala @@ -99,7 +99,6 @@ class ArrayOfOffsetTimesReading extends ArrayOfOffsetTimesBenchmark { @Benchmark def weePickle(): Array[OffsetTime] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[OffsetTime]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfPeriodsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfPeriodsReading.scala index ef8382516..787d8c970 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfPeriodsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfPeriodsReading.scala @@ -99,7 +99,6 @@ class ArrayOfPeriodsReading extends ArrayOfPeriodsBenchmark { @Benchmark def weePickle(): Array[Period] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Period]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfShortsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfShortsReading.scala index 6c0dd4a6d..239b4b696 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfShortsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfShortsReading.scala @@ -102,7 +102,7 @@ class ArrayOfShortsReading extends ArrayOfShortsBenchmark { @Benchmark def weePickle(): Array[Short] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Short]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfUUIDsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfUUIDsReading.scala index de1852f0a..63b0faa24 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfUUIDsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfUUIDsReading.scala @@ -104,7 +104,7 @@ class ArrayOfUUIDsReading extends ArrayOfUUIDsBenchmark { @Benchmark def weePickle(): Array[UUID] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[UUID]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearMonthsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearMonthsReading.scala index 27fb1a006..defc3c3e2 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearMonthsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearMonthsReading.scala @@ -99,7 +99,6 @@ class ArrayOfYearMonthsReading extends ArrayOfYearMonthsBenchmark { @Benchmark def weePickle(): Array[YearMonth] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[YearMonth]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearsReading.scala index 827f19435..36270b545 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfYearsReading.scala @@ -99,7 +99,6 @@ class ArrayOfYearsReading extends ArrayOfYearsBenchmark { @Benchmark def weePickle(): Array[Year] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Year]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneIdsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneIdsReading.scala index 7f6807899..660abcfdb 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneIdsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneIdsReading.scala @@ -99,7 +99,6 @@ class ArrayOfZoneIdsReading extends ArrayOfZoneIdsBenchmark { @Benchmark def weePickle(): Array[ZoneId] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[ZoneId]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneOffsetsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneOffsetsReading.scala index a6a084ded..e541b1aef 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneOffsetsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZoneOffsetsReading.scala @@ -99,7 +99,6 @@ class ArrayOfZoneOffsetsReading extends ArrayOfZoneOffsetsBenchmark { @Benchmark def weePickle(): Array[ZoneOffset] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[ZoneOffset]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZonedDateTimesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZonedDateTimesReading.scala index 34e275e7f..56262c2db 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZonedDateTimesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfZonedDateTimesReading.scala @@ -96,7 +96,7 @@ class ArrayOfZonedDateTimesReading extends ArrayOfZonedDateTimesBenchmark { @Benchmark def weePickle(): Array[ZonedDateTime] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[ZonedDateTime]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArraySeqOfBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArraySeqOfBooleansReading.scala index 24f96bed7..1bcfd5d82 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArraySeqOfBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArraySeqOfBooleansReading.scala @@ -104,7 +104,7 @@ class ArraySeqOfBooleansReading extends ArraySeqOfBooleansBenchmark { @Benchmark def weePickle(): ArraySeq[Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[ArraySeq[Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/Base64Reading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/Base64Reading.scala index 38f7bdc1e..5baf87434 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/Base64Reading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/Base64Reading.scala @@ -107,7 +107,7 @@ class Base64Reading extends Base64Benchmark { @Benchmark def weePickle(): Array[Byte] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Array[Byte]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigDecimalReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigDecimalReading.scala index c7f4dffb5..fbbb31ca4 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigDecimalReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigDecimalReading.scala @@ -96,7 +96,7 @@ class BigDecimalReading extends BigDecimalBenchmark { @Benchmark def weePickle(): BigDecimal = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[BigDecimal]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigIntReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigIntReading.scala index fdcdcdd4b..7d7e866af 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigIntReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/BigIntReading.scala @@ -96,7 +96,7 @@ class BigIntReading extends BigIntBenchmark { @Benchmark def weePickle(): BigInt = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[BigInt]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ExtractFieldsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ExtractFieldsReading.scala index 9fd164eb8..2a950c421 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ExtractFieldsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ExtractFieldsReading.scala @@ -108,7 +108,6 @@ class ExtractFieldsReading extends ExtractFieldsBenchmark { @Benchmark def weePickle(): ExtractFields = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[ExtractFields]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GeoJSONReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GeoJSONReading.scala index b2145f4c5..9a5444cb2 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GeoJSONReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GeoJSONReading.scala @@ -109,7 +109,6 @@ class GeoJSONReading extends GeoJSONBenchmark { @Benchmark def weePickle(): GeoJSON = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[GeoJSON]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GitHubActionsAPIReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GitHubActionsAPIReading.scala index ac27e9fa3..3588fec3b 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GitHubActionsAPIReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GitHubActionsAPIReading.scala @@ -107,7 +107,6 @@ class GitHubActionsAPIReading extends GitHubActionsAPIBenchmark { @Benchmark def weePickle(): GitHubActionsAPI.Response = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[GitHubActionsAPI.Response]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIReading.scala index 51b3e66a7..468a2d154 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIReading.scala @@ -109,7 +109,6 @@ class GoogleMapsAPIReading extends GoogleMapsAPIBenchmark { @Benchmark def weePickle(): DistanceMatrix = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[DistanceMatrix]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/IntReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/IntReading.scala index 0b133c004..c6bc0611f 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/IntReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/IntReading.scala @@ -102,7 +102,7 @@ class IntReading extends IntBenchmark { @Benchmark def weePickle(): Int = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Int]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ListOfBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ListOfBooleansReading.scala index d37d7f994..9ce77e957 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ListOfBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/ListOfBooleansReading.scala @@ -102,7 +102,7 @@ class ListOfBooleansReading extends ListOfBooleansBenchmark { @Benchmark def weePickle(): List[Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[List[Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MapOfIntsToBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MapOfIntsToBooleansReading.scala index f2d2c45c7..680032be2 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MapOfIntsToBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MapOfIntsToBooleansReading.scala @@ -96,7 +96,7 @@ class MapOfIntsToBooleansReading extends MapOfIntsToBooleansBenchmark { */ @Benchmark def weePickle(): Map[Int, Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Map[Int, Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MissingRequiredFieldsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MissingRequiredFieldsReading.scala index 011953d80..7a49817ae 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MissingRequiredFieldsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MissingRequiredFieldsReading.scala @@ -178,7 +178,6 @@ class MissingRequiredFieldsReading extends MissingRequiredFieldsBenchmark { @Benchmark def weePickle(): String = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala import com.rallyhealth.weepickle.v1.core.TransformException diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableMapOfIntsToBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableMapOfIntsToBooleansReading.scala index 7bc2a3e6f..b1d086ed0 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableMapOfIntsToBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableMapOfIntsToBooleansReading.scala @@ -76,7 +76,7 @@ class MutableMapOfIntsToBooleansReading extends MutableMapOfIntsToBooleansBenchm @Benchmark def weePickle(): mutable.Map[Int, Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[mutable.Map[Int, Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableSetOfIntsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableSetOfIntsReading.scala index 70af714bf..236b4f2a3 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableSetOfIntsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/MutableSetOfIntsReading.scala @@ -87,7 +87,7 @@ class MutableSetOfIntsReading extends MutableSetOfIntsBenchmark { @Benchmark def weePickle(): mutable.Set[Int] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[mutable.Set[Int]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/NestedStructsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/NestedStructsReading.scala index 0ff4b5b23..7bfe563be 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/NestedStructsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/NestedStructsReading.scala @@ -109,7 +109,6 @@ class NestedStructsReading extends NestedStructsBenchmark { @Benchmark def weePickle(): NestedStructs = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[NestedStructs]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/OpenRTBReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/OpenRTBReading.scala index dc845bc17..fbd19d1cd 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/OpenRTBReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/OpenRTBReading.scala @@ -110,7 +110,6 @@ class OpenRTBReading extends OpenRTBBenchmark { @Benchmark def weePickle(): BidRequest = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[BidRequest]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/PrimitivesReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/PrimitivesReading.scala index e160f4673..666083756 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/PrimitivesReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/PrimitivesReading.scala @@ -108,7 +108,6 @@ class PrimitivesReading extends PrimitivesBenchmark { @Benchmark def weePickle(): Primitives = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Primitives]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/SetOfIntsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/SetOfIntsReading.scala index 1d2e84ebc..888030c2c 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/SetOfIntsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/SetOfIntsReading.scala @@ -102,7 +102,7 @@ class SetOfIntsReading extends SetOfIntsBenchmark { @Benchmark def weePickle(): Set[Int] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Set[Int]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfAsciiCharsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfAsciiCharsReading.scala index 851adb37d..bebaf9222 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfAsciiCharsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfAsciiCharsReading.scala @@ -103,7 +103,7 @@ class StringOfAsciiCharsReading extends StringOfAsciiCharsBenchmark { @Benchmark def weePickle(): String = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[String]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfEscapedCharsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfEscapedCharsReading.scala index 56bd550ba..23a77bc29 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfEscapedCharsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfEscapedCharsReading.scala @@ -103,7 +103,7 @@ class StringOfEscapedCharsReading extends StringOfEscapedCharsBenchmark { @Benchmark def weePickle(): String = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[String]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfNonAsciiCharsReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfNonAsciiCharsReading.scala index 7944d510d..ca4fcf8ba 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfNonAsciiCharsReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/StringOfNonAsciiCharsReading.scala @@ -103,7 +103,7 @@ class StringOfNonAsciiCharsReading extends StringOfNonAsciiCharsBenchmark { @Benchmark def weePickle(): String = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[String]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/TwitterAPIReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/TwitterAPIReading.scala index c41c5de18..9c39a487c 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/TwitterAPIReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/TwitterAPIReading.scala @@ -110,7 +110,6 @@ class TwitterAPIReading extends TwitterAPIBenchmark { @Benchmark def weePickle(): Seq[Tweet] = { import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ - import com.rallyhealth.weejson.v1.jackson.FromJson import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Seq[Tweet]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/VectorOfBooleansReading.scala b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/VectorOfBooleansReading.scala index 9507ffda4..17bb6e611 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/VectorOfBooleansReading.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/VectorOfBooleansReading.scala @@ -102,7 +102,7 @@ class VectorOfBooleansReading extends VectorOfBooleansBenchmark { @Benchmark def weePickle(): Vector[Boolean] = { - import com.rallyhealth.weejson.v1.jackson.FromJson + import com.github.plokhotnyuk.jsoniter_scala.benchmark.WeePickleFromTos._ import com.rallyhealth.weepickle.v1.WeePickle.ToScala FromJson(jsonBytes).transform(ToScala[Vector[Boolean]]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/JacksonSerDesers.scala b/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/JacksonSerDesers.scala index 8842ada39..fe4cc9c94 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/JacksonSerDesers.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/JacksonSerDesers.scala @@ -4,7 +4,7 @@ import java.util.concurrent.ConcurrentHashMap import com.fasterxml.jackson.annotation.JsonInclude.Include import com.fasterxml.jackson.annotation.JsonTypeInfo import com.fasterxml.jackson.core.json.JsonWriteFeature -import com.fasterxml.jackson.core.util.{DefaultIndenter, DefaultPrettyPrinter} +import com.fasterxml.jackson.core.util.{DefaultIndenter, DefaultPrettyPrinter, JsonRecyclerPools} import com.fasterxml.jackson.core._ import com.fasterxml.jackson.databind._ import com.fasterxml.jackson.databind.jsontype.NamedType @@ -29,6 +29,7 @@ object JacksonSerDesers { .configure(StreamReadFeature.USE_FAST_BIG_NUMBER_PARSER, true) .configure(StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION, true) .streamReadConstraints(StreamReadConstraints.builder().maxNumberLength(Int.MaxValue).build()) /* WARNING: It is an unsafe option for open systems */ + .recyclerPool(JsonRecyclerPools.threadLocalPool()) .build() new ObjectMapper(jsonFactory) with ClassTagExtensions { addMixIn(classOf[GeoJSON.GeoJSON], classOf[MixIn]) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/Json4sFormats.scala b/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/Json4sFormats.scala index 9205dd13d..7ec992a84 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/Json4sFormats.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/Json4sFormats.scala @@ -160,6 +160,7 @@ object Json4sJacksonMappers { .configure(JsonWriteFeature.ESCAPE_NON_ASCII, escapeNonAscii) .configure(StreamReadFeature.USE_FAST_DOUBLE_PARSER, true) .configure(StreamWriteFeature.USE_FAST_DOUBLE_WRITER, true) + .recyclerPool(JsonRecyclerPools.threadLocalPool()) .build() new ObjectMapper(jsonFactory) .registerModule(new Json4sScalaModule) diff --git a/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/WeePickleFromTos.scala b/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/WeePickleFromTos.scala index cc266b0d5..eec26d424 100644 --- a/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/WeePickleFromTos.scala +++ b/jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/WeePickleFromTos.scala @@ -1,21 +1,25 @@ package com.github.plokhotnyuk.jsoniter_scala.benchmark import com.fasterxml.jackson.core.json.JsonWriteFeature -import com.fasterxml.jackson.core.{JsonFactory, JsonFactoryBuilder, JsonGenerator, StreamReadFeature, StreamWriteFeature} -import com.fasterxml.jackson.core.util.{DefaultIndenter, DefaultPrettyPrinter} +import com.fasterxml.jackson.core.{JsonFactoryBuilder, JsonGenerator, StreamReadFeature, StreamWriteFeature} +import com.fasterxml.jackson.core.util.{DefaultIndenter, DefaultPrettyPrinter, JsonRecyclerPools} import com.github.plokhotnyuk.jsoniter_scala.benchmark.GoogleMapsAPI.DistanceMatrix import com.github.plokhotnyuk.jsoniter_scala.benchmark.SuitEnum.SuitEnum import com.rallyhealth.weejson.v1.jackson.CustomPrettyPrinter.FieldSepPrettyPrinter -import com.rallyhealth.weejson.v1.jackson.JsonGeneratorOps +import com.rallyhealth.weejson.v1.jackson.{JsonGeneratorOps, JsonParserOps} import com.rallyhealth.weepickle.v1.WeePickle._ import com.rallyhealth.weepickle.v1.core.Visitor import java.time._ object WeePickleFromTos extends WeePickleFromTos2 { - def defaultJsonFactoryBuilder: JsonFactoryBuilder = JsonFactory.builder().asInstanceOf[JsonFactoryBuilder] + def defaultJsonFactoryBuilder: JsonFactoryBuilder = new JsonFactoryBuilder() .configure(StreamReadFeature.USE_FAST_DOUBLE_PARSER, true) .configure(StreamWriteFeature.USE_FAST_DOUBLE_WRITER, true) + .configure(StreamReadFeature.USE_FAST_BIG_NUMBER_PARSER, true) + .recyclerPool(JsonRecyclerPools.threadLocalPool()) + + object FromJson extends JsonParserOps(defaultJsonFactoryBuilder.build()) object ToJson extends JsonGeneratorOps(defaultJsonFactoryBuilder.build())