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

do not allocate memory in Item.Value #34

Merged
merged 1 commit into from
Jul 24, 2018
Merged

do not allocate memory in Item.Value #34

merged 1 commit into from
Jul 24, 2018

Conversation

coocood
Copy link
Member

@coocood coocood commented Jul 24, 2018

No description provided.

}
var vp valuePointer
vp.Decode(item.vptr)
return item.db.vlog.Read(vp, item.slice)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we pass nil explicitly instead of item.slice ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got it.

@ngaut ngaut merged commit 6cd157d into master Jul 24, 2018
@ngaut ngaut deleted the value-no-copy branch July 24, 2018 09:02
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.

2 participants