Skip to content

leveldb: optimize pickCompaction#317

Merged
syndtr merged 2 commits intosyndtr:masterfrom
qianbin:optmize-pick-compaction
Aug 15, 2020
Merged

leveldb: optimize pickCompaction#317
syndtr merged 2 commits intosyndtr:masterfrom
qianbin:optmize-pick-compaction

Conversation

@qianbin
Copy link
Copy Markdown
Contributor

@qianbin qianbin commented Feb 24, 2020

using binary search to find next table

using binary search to find next table
Comment thread leveldb/session_compaction.go Outdated
t0 = append(t0, t)
break
if cptr != nil {
if sourceLevel == 0 {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we can even be more aggressive here.

Seems level0 files are overlapped anyway, so for level0 seed file we can just pick the first one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ha, good idea

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

so I just added a new commit according to your suggestion

@syndtr syndtr merged commit a38fa22 into syndtr:master Aug 15, 2020
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.

3 participants