Skip to content

Commit

Permalink
Improve performance of response encoding for jsoniter (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyri-petrou authored Jul 8, 2024
1 parent f53133f commit 044d6c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/caliban/interop/jsoniter/jsoniter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private[caliban] object ValueJsoniter {
val iter = m.iterator
while (iter.hasNext) {
val (k, v) = iter.next()
out.writeKey(k)
out.writeNonEscapedAsciiKey(k)
encodeInputValue(v, out)
}
out.writeObjectEnd()
Expand Down Expand Up @@ -117,7 +117,7 @@ private[caliban] object ValueJsoniter {
while (remaining ne Nil) {
val (k, v) = remaining.head
remaining = remaining.tail
out.writeKey(k)
out.writeNonEscapedAsciiKey(k)
encodeResponseValue(v, out)
}
out.writeObjectEnd()
Expand Down

0 comments on commit 044d6c6

Please sign in to comment.