We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Now the db.Put operation will create a new batch every time, which may cause too much memory allocation. We can use sync.Pool to avoid this.
db.Put
sync.Pool
The goleveldb has done this, see https://github.com/syndtr/goleveldb/blob/master/leveldb/db_write.go#L362
The text was updated successfully, but these errors were encountered:
I will finish it.
Sorry, something went wrong.
Now the db.Put operation will create a new batch every time, which may cause too much memory allocation. We can use sync.Pool to avoid this. The goleveldb has done this, see https://github.com/syndtr/goleveldb/blob/master/leveldb/db_write.go#L362
That's a good idea
Thanks, I have done this in commit 02c9953
you can add it to lotusdb if you want.
Successfully merging a pull request may close this issue.
Now the
db.Put
operation will create a new batch every time, which may cause too much memory allocation.We can use
sync.Pool
to avoid this.The goleveldb has done this, see https://github.com/syndtr/goleveldb/blob/master/leveldb/db_write.go#L362
The text was updated successfully, but these errors were encountered: