pub fn export_binary<P: AsRef<Path>>(
binary_path: P,
base_name: &str,
format: BinaryOutputFormat,
) -> Result<(), BinaryExportError>
Expand description
[UNIFIED ENTRY POINT] Ultra-fast binary export with format selection and parallel processing
This is the main unified entry point that supports JSON, HTML, or both formats with optimized performance. Uses parallel processing and streaming for large datasets, inspired by optimized_json_export.rs. Designed to match or exceed full-binary → JSON performance while adding HTML support.
§Arguments
binary_path
- Path to the binary filebase_name
- Base name for output filesformat
- Output format (Json, Html, or Both)config
- Optional configuration for performance tuning
§Performance Features
- Parallel processing for multiple formats (JSON + HTML simultaneously)
- Streaming data processing for large files
- Optimized memory usage with batching
- Intelligent buffer management
- Zero impact on existing JSON-only performance
- Shared data reading to avoid duplicate I/O