Skip to content

Commit

Permalink
update readme about the intintmap
Browse files Browse the repository at this point in the history
Change-Id: Idab3a1f8bfe55bc16e8f0b1ff86b0d4658235ffa
  • Loading branch information
jxskiss committed May 2, 2021
1 parent 6464ba0 commit 6871643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -341,9 +341,9 @@ The fact that all type information can be acquired means that by constructing sl

However, if there is too much type information, it will use a lot of memory, so by default we will only use this optimization if the slice size fits within **2Mib** .

If this approach is not available, it will fall back to the `atomic` based process described above.
If this approach is not available, it will fall back to a fast copy-on-write int map, which is slightly slower than the slice approach, but is must faster than the builtin map.

If you want to know more, please refer to the implementation [here](https://github.com/goccy/go-json/blob/master/codec.go#L24-L76 )
If you want to know more, please refer to the implementation [here](https://github.com/goccy/go-json/blob/master/codec.go#L19-L73 )

## Decoder

Expand Down

0 comments on commit 6871643

Please sign in to comment.