-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
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
use unsafe.String #371
Comments
See |
I see that you actually use
which should be roughly the same. So.... I guess it's the same |
You are welcome to send a PR as a cosmetic fix. We are at minimum Go 1.20, so it should be fine. |
I will first try to bench first if it makes anything faster. |
99% sure it will be the same. I am willing to be surprised, though :) |
yeah it seems exactly the same with regards to speed, even when I inline; not sure why my earlier experiments were so different, probably noise. OK I will make a PR but it will be really just a cosmetic change |
FWIW the |
since go1.20, there is unsafe.String/unsafe.StringData
Looks like this
I have found these functions really fast. (and it's also much faster to directly inline their usage rather than put them in a wrapper function, btw.)
I think those might be useful here. I will try to have a look where would I add them :D
The text was updated successfully, but these errors were encountered: