This repository was archived by the owner on Aug 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 177
Attempt to reduce memory footprint of compaction #627
Closed
Closed
Changes from 3 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
9811a14
Returning series ref in ChunkSeriesSet.At()
12a10a0
newCompactionMerger takes []ChunkSeriesSet. Calculating (old series i…
b7839c4
User (old series id -> new series id) map to write new postings
5d3bf62
Get rid of postingMap
76b67fd
NumSeries() for BlockReader. Pre-allocate memory for seriesMap maps.
64e4487
Set a higher initial value for postingBuf
3a4a6e6
Efficiently iterate over all sorted label-values
0a0dbfe
Hint number of postings writes to the index Writer to pre-allocate me…
c1c39ed
Pre-allocate slice for label values in populateBlock
3593059
Re-use bigEndianPostings in populateBlock
e78ec69
Reuse string buffer when swapping stringTuples
f344fa2
Reuse byte slice for writing chunk meta hash
9fab207
Fix race in writeHash
0ff98c0
Fix lint errors
407fe55
Reuse slice in ReadOffsetTable. Reduces allocs for OpenBlock.
39b97e5
Reuse ListPostings in populateBlock.
4ff0ed8
Check for error before wrapping in blockIndexReader.Series
387705d
Check for error before wrapping in blockIndexReader.Postings
cff36d4
Use already allocated byte buffer in writeHash
f9dfe07
WriteChunks takes a byte buffer to reuse
e812fba
Breakdown generic writeOffsetTable into writeLabelIndexesOffsetTable …
b421a4b
Fix review comments
53ccf99
Reset() for Postings interface
eb79899
Merge remote-tracking branch 'upstream/master' into compact-opt
c7af8aa
Fix review comments
b2b2647
Remove Reset(...) from Postings interface
b007998
More code comments and fix review comments
0068b3c
Revert changes to writeOffsetTable
606fcf1
Revert checking error before wrapping
0898907
Revert re-use of 'keys' in ReadOffsetTable
caa715e
Revert changes made to stringTuples
1d54273
Revert passing byte buffer to WriteChunks and writeHash
dbec7eb
Merge remote-tracking branch 'upstream/master' into compact-opt
85bdf35
Merge remote-tracking branch 'upstream/master' into compact-opt
89d459e
hashEntry -> postingsHashEntry after merging upstream
f8ddc03
writePostings perf improvements
1582ebc
Fix review comments
5993889
Add RemappedPostings
4293e37
Merge remote-tracking branch 'upstream/master' into compact-opt
e0693dc
Fix review comments
048790b
Reset ref in compactionMerger when there are 0 chunks
605f5b7
compactionMerger doesn't return series with 0 chunks
40ad33c
Merge remote-tracking branch 'upstream/master' into compact-opt
b72273f
Fix out-of-order series bug
ffe544e
Merge remote-tracking branch 'upstream/master' into compact-opt
570d5e1
Bug fix in compactionMerger.Next()
4ed0cac
Don't put deleted series in seriesMap
c252f96
Better allocation strategy for remapped postings
a75fa32
Faster way to merge remapped postings
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.