Skip to content

Commit

Permalink
Use array for faster lookup
Browse files Browse the repository at this point in the history
Co-authored-by: Yannick Heiber <[email protected]>
  • Loading branch information
satabin and ybasket authored Mar 22, 2024
1 parent 4c899fd commit 1738a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json/src/main/scala/fs2/data/json/tokens.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ object Token {
}
}

private final val hex = "0123456789abcdef"
private final val hex = "0123456789abcdef".toArray

@tailrec
def renderString(s: String, idx: Int, builder: StringBuilder): Unit =
Expand Down

0 comments on commit 1738a6f

Please sign in to comment.