-
Notifications
You must be signed in to change notification settings - Fork 257
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
Proposal: ReadBytes #110
Comments
That's a very good idea. Would you be interested to write a unit test for it as well please? Otherwise I'll perhaps do it in another week. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because I use
github.com/buger/jsonparser
, which can search through JSON bytes without memory-overhead I had to make an extra method to just get the bytes back. I was thinking if it might be suitable for the tiedot package itself too. Maybejsonparser
can also be used for lookup stuff under the hood to speed things up even more?This is the method :
It gave me a
1.6x
speed boost when just wanting to lookup one field from the result-set (eg password), which was really significant in my API, easily upping requests p/second by hundreds.Would love to hear your feedback.
Example loop comparison:
The text was updated successfully, but these errors were encountered: