Skip to content
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

perf: nocopy read for ReadString and ReadBinary API if possible #315

Merged
merged 7 commits into from
Apr 23, 2024

Conversation

joway
Copy link
Member

@joway joway commented Mar 1, 2024

What type of PR is this?

perf

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:

before:

BenchmarkNoCopyRead-12    	  199310	      5662 ns/op	   32809 B/op	      11 allocs/op

after:

BenchmarkNoCopyRead-12    	17504086	        80.34 ns/op	      56 B/op	       2 allocs/op

zh(optional):

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

@joway joway requested review from a team as code owners March 1, 2024 10:31
@joway joway force-pushed the perf/nocopy-read branch 5 times, most recently from 3f1e6d0 to 267a8c5 Compare March 4, 2024 03:38
nocopy_linkbuffer.go Outdated Show resolved Hide resolved
nocopy_linkbuffer.go Outdated Show resolved Hide resolved
nocopy.go Outdated Show resolved Hide resolved
ppzqh
ppzqh previously approved these changes Apr 19, 2024
@joway joway enabled auto-merge (squash) April 19, 2024 08:56
@joway joway force-pushed the perf/nocopy-read branch 2 times, most recently from ccbc365 to 2de2406 Compare April 22, 2024 08:36
jayantxie
jayantxie previously approved these changes Apr 22, 2024
@joway joway merged commit 05a1094 into develop Apr 23, 2024
15 checks passed
@joway joway deleted the perf/nocopy-read branch April 23, 2024 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants