Skip to content

Commit

Permalink
chore: force all optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
liuq19 committed Jun 3, 2024
1 parent ca489fa commit 48b14e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sonic.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,20 @@ import (

`github.com/bytedance/sonic/decoder`
`github.com/bytedance/sonic/encoder`
enc `github.com/bytedance/sonic/internal/encoder`
`github.com/bytedance/sonic/internal/envs`

`github.com/bytedance/sonic/option`
`github.com/bytedance/sonic/internal/rt`
)

func init() {
envs.EnableOptDec()
envs.EnableFastMap()
enc.ForceUseVM()
println("Warning: enable all optimize here, only used in test now")
}

type frozenConfig struct {
Config
encoderOpts encoder.Options
Expand Down

0 comments on commit 48b14e1

Please sign in to comment.