Skip to content

Conversation

ayuhito
Copy link
Contributor

@ayuhito ayuhito commented Sep 13, 2025

Instead of calling reflect.TypeOf(type{}) repetitively, we can precompute these types to save some CPU cycles and potentially skip an extra allocation for any non-primitive types (e.g. time.Time).

@ayuhito ayuhito changed the title perf(reflect): precompute fixed reflect types perf(rows): precompute fixed reflect types Sep 13, 2025
@taniabogatsch
Copy link
Collaborator

Thanks!

@taniabogatsch taniabogatsch merged commit b5b5b94 into marcboeker:main Sep 18, 2025
32 checks passed
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.

2 participants