Skip to content

Commit

Permalink
opt: pre-allocate chunk blocks slice in chunk proposer
Browse files Browse the repository at this point in the history
  • Loading branch information
qcrao committed Dec 11, 2024
1 parent 06beb5d commit c8a233c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"runtime/debug"
)

var tag = "v4.4.81"
var tag = "v4.4.82"

var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {
Expand Down
1 change: 1 addition & 0 deletions rollup/internal/controller/watcher/chunk_proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ func (p *ChunkProposer) proposeChunk() error {
}

var chunk encoding.Chunk
chunk.Blocks = make([]*encoding.Block, 0, len(blocks))
for i, block := range blocks {
chunk.Blocks = append(chunk.Blocks, block)

Expand Down

0 comments on commit c8a233c

Please sign in to comment.