Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dolmen
Copy link
Collaborator

@dolmen dolmen commented Nov 9, 2023

Summary

Simpler and faster (also less allocations) in internal function isNil.

Changes

  • Simplify isNil: use a switch on reflect.Value.Kind() instead of browsing a slice of allowed Kinds.

Motivation

Less code, less complexity, less memory usage, more speed.

Simpler and faster (also less allocations) in internal isNil().
@dolmen dolmen self-assigned this Nov 9, 2023
@dolmen
Copy link
Collaborator Author

dolmen commented Jan 19, 2024

@MovieStoreGuy Could you review this?

@MovieStoreGuy MovieStoreGuy merged commit 92533fa into master Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants