-
Notifications
You must be signed in to change notification settings - Fork 9
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
ekump/eval bench perf for io read impl #636
Closed
Closed
Commits on Sep 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2c0400d - Browse repository at this point
Copy the full SHA 2c0400dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bebc32a - Browse repository at this point
Copy the full SHA bebc32aView commit details -
Configuration menu - View commit details
-
Copy full SHA for afba2ae - Browse repository at this point
Copy the full SHA afba2aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c8e7cb - Browse repository at this point
Copy the full SHA 3c8e7cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for cdb4528 - Browse repository at this point
Copy the full SHA cdb4528View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0df2450 - Browse repository at this point
Copy the full SHA 0df2450View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed533c7 - Browse repository at this point
Copy the full SHA ed533c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a849d85 - Browse repository at this point
Copy the full SHA a849d85View commit details -
Bytes itself is already a structure with a slice into some underlying bytes. Thus, we are adding a cheap way to directly modify the slice of the Bytes struct. To facilitate this, we now store the tuple (ptr, len) as a &[] slice within the Bytes struct. The representation of these is exactly identical to before, but it allows trivial manipulation of the slice via direct assignment or &mut &[u8] reference. The way the underlying field was exposed on the BytesWrapper struct was also unsound. Access to it was not wrapped within an unsafe method. The decoder code can now trivially clone() the given Bytes struct and carry it around, directly shrinking the slice size of the underlying Bytes instance as the data is being processed. Additionally, there now exist two helper methods for numbers and strings (read_string_bytes and read_number_bytes) which handle a bit of the boilerplate. Sadly it is necessary to always write "unsafe { buf.as_mut_slice() }", but this is necessary for soundness, we only can actually guarantee safety when calling the actual decode functions, as long as we want to carry Bytes around. Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Configuration menu - View commit details
-
Copy full SHA for e52927f - Browse repository at this point
Copy the full SHA e52927fView commit details -
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Configuration menu - View commit details
-
Copy full SHA for 2cda85c - Browse repository at this point
Copy the full SHA 2cda85cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47a022b - Browse repository at this point
Copy the full SHA 47a022bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02202f9 - Browse repository at this point
Copy the full SHA 02202f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fb3ac6 - Browse repository at this point
Copy the full SHA 8fb3ac6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16f094c - Browse repository at this point
Copy the full SHA 16f094cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.