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
{{ message }}
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
add rule which will check sql structs with pointers to basic types (string, int, bool, etc) and will recommend change it to sql.Null* type. So we can decrease load on heap and increase runtime speed
POC:
type RowHeap struct {
Str *string `db:"str"`
}
type RowStack struct {
Str sql.NullString `db:"str"`
}
Is your feature request related to a problem? Please describe.
add rule which will check sql structs with pointers to basic types (string, int, bool, etc) and will recommend change it to sql.Null* type. So we can decrease load on heap and increase runtime speed
POC:
BenchmarkResults https://github.com/peakle/meetup/blob/master/go-optimizations/bench2_test.go:
The text was updated successfully, but these errors were encountered: