QasimKhan5d opened a new pull request, #35: URL: https://github.com/apache/datasketches-go/pull/35
- Implemented `compress` and `uncompress` methods for all CPC sketch flavors (Empty, Sparse, Hybrid, Pinned, Sliding): - Defined specialized handlers (e.g., compressSparseFlavor, compressPinnedFlavor, etc.) to handle logic per sketch flavor. - Ensured correctness with extensive checks on sketch state during compression/decompression. - Added utilities for compressing/uncompressing surprising values (SV), sliding windows, and Golomb coding logic. - Implemented `lowLevelCompressPairs` and `lowLevelUncompressPairs` with Golomb encoding optimizations. - Added `lowLevelCompressBytes` and `lowLevelUncompressBytes` for sliding window data. - Introduced `determinePseudoPhase` for consistent sliding window handling. - Enhanced error handling, removed placeholder panic statements, and replaced them with descriptive errors. - Provided helper functions (`ExportToMemory`, `uncompressSketch`) for state serialization and recovery. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@datasketches.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@datasketches.apache.org For additional commands, e-mail: dev-h...@datasketches.apache.org