Skip to content

Commit

Permalink
Mention jwx_asmbase64 (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed May 2, 2023
1 parent 241434f commit 971a021
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/20-global-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ Disable the tag if you feel like it's not worth the hassle.

And when you *do* enable [github.com/goccy/go-json](https://github.com/goccy/go-json) and you encounter some mysterious error, I also trust that you know to file an issue to [github.com/goccy/go-json](https://github.com/goccy/go-json) and **NOT** to this library.

## Enabling experimental base64 encoder/decoder

This feature is currently considered experimental.

Currently you can enable [github.com/segmentio/asm/base64](https://github.com/segmentio/asm/tree/main/base64) by specifying the `jwx_asmbase64` build tag

```shell
% go build -tags jwx_goccy ...
```

In our limited testing, this does not seem to improve performance significantly: presumably the other bottlenecks are more dominant. If you care enough to use this option, you probably wantt o enable `jwx_goccy` build tag as well.

## Using json.Number

If you want to parse numbers in the incoming JSON objects as json.Number
Expand Down

0 comments on commit 971a021

Please sign in to comment.