Performance¶
This section covers Jetliner's performance characteristics and optimization strategies.
Overview¶
Jetliner is designed for high-throughput Avro reading with minimal memory overhead:
- Streaming architecture: Block-by-block reading, not full file loading
- Zero-copy techniques: Uses
bytes::Bytesfor efficient memory handling - Async I/O: Overlaps I/O with processing via prefetching
- Query optimization: Projection and predicate pushdown reduce data read
Topics¶
- Benchmarks - Performance comparisons with other readers
- Optimization Tips - Tuning for your use case
Quick Tips¶
- Use projection pushdown: Select only needed columns
- Use predicate pushdown: Filter during read, not after
- Use early stopping:
head()stops reading early - Tune buffers: Adjust
buffer_blocksandbuffer_bytesfor your environment - Choose appropriate codecs:
zstdoffers best balance of speed and compression