GorillaStream.Compression.Gorilla.EncoderOptimized (gorilla_stream v3.0.3)

Copy Markdown View Source

Optimized encoder for Gorilla compression.

This implementation reduces the number of full passes over the input data and avoids unnecessary list reversals and extra validation passes. It keeps the same public API as the original encoder.

Summary

Functions

Encodes a stream of {timestamp, float} tuples using an optimized pipeline.

Functions

encode(stream)

Encodes a stream of {timestamp, float} tuples using an optimized pipeline.

The function performs a single pass over the input data to validate and separate timestamps and values, then delegates to the existing DeltaEncoding, ValueCompression, BitPacking, and Metadata modules.