Skip to content

Commit

Permalink
perf: Memory alignment to improve operatorCache memory efficiency (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
dxasu authored Nov 7, 2024
1 parent 8a1f559 commit b3ca76e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fd_operator_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ func newOperatorCache() *operatorCache {
}

type operatorCache struct {
locked int32
first *FDOperator
cache []*FDOperator
locked int32
// freelist store the freeable operator
// to reduce GC pressure, we only store op index here
freelist []int32
freelocked int32
freelist []int32
}

func (c *operatorCache) alloc() *FDOperator {
Expand Down

0 comments on commit b3ca76e

Please sign in to comment.