wp
This commit is contained in:
@@ -149,9 +149,9 @@ func TestCumdeltaBound(t *testing.T) {
|
||||
fmt.Printf("%d\n", buf.Chunks()[0])
|
||||
//////////////////////////
|
||||
|
||||
bound := c.GetState()
|
||||
c.Lock()
|
||||
|
||||
fmt.Printf("bound: pos=%d, h=%d\n", bound.Pos, bound.H)
|
||||
//fmt.Printf("bound: pos=%d, h=%d\n", bound.Pos, bound.H)
|
||||
|
||||
c.Append(248)
|
||||
c.Append(305)
|
||||
@@ -167,8 +167,9 @@ func TestCumdeltaBound(t *testing.T) {
|
||||
fmt.Println(value, done)
|
||||
}
|
||||
|
||||
boundDecompressor := NewReverseCumulativeDeltaDecompressor(buf, c.Size(), fracDigits)
|
||||
boundDecompressor.RestoreFromBound(bound)
|
||||
//boundDecompressor := NewReverseCumulativeDeltaDecompressor(buf, c.Size(), fracDigits)
|
||||
//boundDecompressor.RestoreFromBound(bound)
|
||||
boundDecompressor := c.CreateDecompressor(fracDigits)
|
||||
|
||||
fmt.Println("from bound:")
|
||||
for range 8 {
|
||||
|
||||
Reference in New Issue
Block a user