Function parse_file

Source
pub fn parse_file<P: AsRef<Path>>(
    path: P,
    options: Option<ParseStringOptions>,
) -> Result<Vec<Message>>
Expand description

Convenience helper that memory-maps a chat export file and parses it without copying its contents into an intermediate String.

This keeps peak memory low (the OS brings pages in on demand) and can be noticeably faster on very large exports.