Closed dolmen closed 8 months ago
Simpler and faster (also less allocations) in internal function isNil.
isNil
reflect.Value.Kind()
Kind
Less code, less complexity, less memory usage, more speed.
@MovieStoreGuy Could you review this?
Summary
Simpler and faster (also less allocations) in internal function
isNil
.Changes
isNil
: use a switch onreflect.Value.Kind()
instead of browsing a slice of allowedKind
s.Motivation
Less code, less complexity, less memory usage, more speed.