Skip to content

Commit

Permalink
Build transforms once per job instead of once per block. It saves man…
Browse files Browse the repository at this point in the history
…y transform creations but also the memory allocations in the trasnforms. It works because transforms do not retain any state between calls to forward()/inverse().
  • Loading branch information
flanglet committed Jan 19, 2024
1 parent 91d984d commit eb02406
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 133 deletions.
2 changes: 1 addition & 1 deletion v2/entropy/RiceGolombCodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type RiceGolombDecoder struct {
bitstream kanzi.InputBitStream
}

// NewRiceGolombDecoder creates a new instance of ExpGolombDecoder
// NewRiceGolombDecoder creates a new instance of RiceGolombDecoder
// If sgn is true, values from the bitstream will be decoded as signed (int8)
func NewRiceGolombDecoder(bs kanzi.InputBitStream, sgn bool, logBase uint) (*RiceGolombDecoder, error) {
if bs == nil {
Expand Down
Loading

0 comments on commit eb02406

Please sign in to comment.