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

建议,db.Put中的options 使用值传递 #119

Closed
Tracked by #140
shaovie opened this issue Sep 4, 2023 · 1 comment
Closed
Tracked by #140

建议,db.Put中的options 使用值传递 #119

shaovie opened this issue Sep 4, 2023 · 1 comment
Labels
enhancement New feature or request release plan something in next release

Comments

@shaovie
Copy link

shaovie commented Sep 4, 2023

很小的一个对象,也不需要保存,只是个选项参数而已,没必要让它逃逸到堆上。
并且是最频繁的调用

@roseduan
Copy link
Contributor

roseduan commented Sep 4, 2023

感谢建议,这个我们会优化一些,可以提供一个 PutWithOptions 的方法,而 Put 方法只传递 key/value,Options 使用固定的默认值

@roseduan roseduan added the enhancement New feature or request label Sep 4, 2023
@roseduan roseduan added the release plan something in next release label Jan 3, 2024
@roseduan roseduan mentioned this issue Jan 3, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release plan something in next release
Projects
None yet
Development

No branches or pull requests

3 participants