You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! It is great, that easyjson has an option to intern strings:
type Foo struct {
UUID string `json:"uuid"` // will not be interned during unmarshaling
State string `json:"state,intern"` // will be interned during unmarshaling
}
But the another common target for interning might be actually a string key in arbitrary map[string], because sometimes keys are same, but there is also just a few of them.
type User struct {
ID string `json:"id"`
Settings map[string]any `json:"settings,intern"` // applies to keys of top-level map and all nested map[string]
}
The text was updated successfully, but these errors were encountered:
Hi! It is great, that easyjson has an option to intern strings:
But the another common target for interning might be actually a string key in arbitrary map[string], because sometimes keys are same, but there is also just a few of them.
The text was updated successfully, but these errors were encountered: