We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Take the signature/method examples from #35 (comment)
This should result in a very good speedup without resorting to dynamically generated code yet, as we can cache function pointers with correct types.
For alternate number types like int struc:"uint32", we can use a lookup table to generate conversions like this:
int struc:"uint32"
switch outer { case int: return func(i int) uint32 { return uint32(i) } }
Or take the argjoy approach of IntToInt and see if type switching is still faster than outright reflection.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Take the signature/method examples from #35 (comment)
This should result in a very good speedup without resorting to dynamically generated code yet, as we can cache function pointers with correct types.
For alternate number types like
int struc:"uint32"
, we can use a lookup table to generate conversions like this:Or take the argjoy approach of IntToInt and see if type switching is still faster than outright reflection.
The text was updated successfully, but these errors were encountered: