Skip to content

Commit

Permalink
Reduce instantiation time and memory footprint for all implementation…
Browse files Browse the repository at this point in the history
…s of `JsonEncoder` trait (#1207)
  • Loading branch information
plokhotnyuk authored Jan 5, 2025
1 parent 5341e99 commit 4d53d08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ trait JsonEncoderPlatformSpecific[A] { self: JsonEncoder[A] =>
}
}

final val encodeJsonLinesPipeline: ZPipeline[Any, Throwable, A, Char] =
final lazy val encodeJsonLinesPipeline: ZPipeline[Any, Throwable, A, Char] =
encodeJsonDelimitedPipeline(None, Some('\n'), None)

final val encodeJsonArrayPipeline: ZPipeline[Any, Throwable, A, Char] =
final lazy val encodeJsonArrayPipeline: ZPipeline[Any, Throwable, A, Char] =
encodeJsonDelimitedPipeline(Some('['), Some(','), Some(']'))
}

0 comments on commit 4d53d08

Please sign in to comment.