parse_jid_fast

Function parse_jid_fast 

Source
pub fn parse_jid_fast(s: &str) -> Option<ParsedJidParts<'_>>
Expand description

Single-pass JID parser optimized for hot paths. Scans the input string once to find all relevant separators (@, :) and returns slices into the original string without allocation.

Returns None for JIDs that need full validation (edge cases, unknown servers, etc.)