Skip to main content

encode_timestamps

Function encode_timestamps 

Source
pub fn encode_timestamps(timestamps: &[i64]) -> Vec<u8> 
Expand description

Encode a slice of i64 timestamps using Gorilla (value channel unused).

For timestamps, prefer DoubleDelta codec — it compresses ~4x better. This function exists for backward compatibility with V1 segments.