class
Circed::Network::FastMessageParser
- Circed::Network::FastMessageParser
- Reference
- Object
Overview
High-performance IRC message parser optimized for server-to-server communication Uses efficient string scanning and minimal allocations
Defined in:
circed/network/fast_message_parser.crConstant Summary
-
PARSE_BUFFER_SIZE =
1024
-
Pre-allocated buffer for message parsing
Class Method Summary
-
.high_priority?(command : String) : Bool
Check if message is a high-priority server command
-
.parse(line : String) : ParsedMessage | Nil
Parse IRC message with optimized string operations
-
.parse_batch(lines : Array(String)) : Array(ParsedMessage)
Batch parse multiple messages for better performance
-
.parse_command_only(line : String) : String | Nil
Parse only the command part for routing decisions (very fast)
-
.valid_format?(line : String) : Bool
Validate message format without full parsing
Class Method Detail
def self.high_priority?(command : String) : Bool
#
Check if message is a high-priority server command
def self.parse(line : String) : ParsedMessage | Nil
#
Parse IRC message with optimized string operations
def self.parse_batch(lines : Array(String)) : Array(ParsedMessage)
#
Batch parse multiple messages for better performance
def self.parse_command_only(line : String) : String | Nil
#
Parse only the command part for routing decisions (very fast)