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

Add type addrShift to enable bigger encoder/decoder cache #213

Merged
merged 1 commit into from May 10, 2021

Conversation

jxskiss
Copy link
Contributor

@jxskiss jxskiss commented May 4, 2021

The runtime type data is aligned, by using a simple shift operation, we can make the encoder/decoder cache more compact (reduce to 1/32), thus comsume less memory and enble slice cache for large applications.

@codecov-commenter
Copy link

codecov-commenter commented May 4, 2021

Codecov Report

Merging #213 (7e03a13) into master (835c00e) will decrease coverage by 0.01%.
The diff coverage is 73.33%.

@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
- Coverage   84.10%   84.09%   -0.02%     
==========================================
  Files          49       49              
  Lines       23570    23590      +20     
==========================================
+ Hits        19823    19837      +14     
- Misses       2923     2925       +2     
- Partials      824      828       +4     

codec.go Outdated Show resolved Hide resolved
codec.go Outdated Show resolved Hide resolved
codec.go Outdated Show resolved Hide resolved
Change-Id: I630fa501f3b96702b69a40bc0b2f79f4db2a57eb
@jxskiss
Copy link
Contributor Author

jxskiss commented May 10, 2021

The issues has been solved and re-pushed, by checking each address when iterating the typelinks, we don't need the addrs array anymore.

@goccy goccy merged commit 102554c into goccy:master May 10, 2021
@goccy
Copy link
Owner

goccy commented May 10, 2021

LGTM ! Thank you for the contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants