@@ -89,21 +89,22 @@ known.
8989
9090### Frame Processing Pipeline
9191
92- - ** Bottleneck** : Frame decode/encode operations in high-throughput scenarios
93- - ** Critical Path** : ` LengthPrefixedProcessor::decode ` method
94- - ** Optimization Priority** : High—affects every incoming frame
92+ - ** Bottleneck** : The frame decoding and encoding operations in
93+ high-throughput scenarios
94+ - ** Critical path** : ` LengthPrefixedProcessor::decode `
95+ - ** Optimisation priority** : High—affects every incoming frame
9596
9697### Connection Handling
9798
98- - ** Bottleneck** : Connection actor event loop and fairness tracking
99- - ** Critical Path ** : ` tokio::select! ` in connection actor
100- - ** Optimization Priority ** : Medium—affects per-connection performance
99+ - ** Bottleneck** : The connection actor’s event loop and fairness tracking
100+ - ** Critical path ** : ` tokio::select! ` in the connection actor
101+ - ** Optimisation priority ** : Medium—affects per-connection performance
101102
102103### Message Routing
103104
104- - ** Bottleneck** : HashMap lookups for route resolution
105- - ** Critical Path ** : Route handler lookup in ` WireframeApp `
106- - ** Optimization Priority ** : Low—HashMap lookups are already efficient
105+ - ** Bottleneck** : The ` HashMap ` lookups for route resolution
106+ - ** Critical path ** : Route handler lookup in ` WireframeApp `
107+ - ** Optimisation priority ** : Low—` HashMap ` lookups are already efficient
107108
108109## Implemented Optimizations
109110
@@ -133,8 +134,8 @@ Ok(Some(src.split_to(len).freeze().to_vec()))
133134
134135## Future Optimization Opportunities
135136
136- 1 . ** Frame Type Optimization ** : Consider changing the frame type from ` Vec<u8> `
137- to ` Bytes ` to eliminate the final ` .to_vec() ` call entirely .
137+ 1 . ** Frame type optimisation ** : Replace ` Vec<u8> ` with ` Bytes ` end to end to
138+ eliminate the final ` .to_vec() ` copy on the hot path .
138139
1391402 . ** Connection Actor Pooling** : Implement connection actor pooling to reduce
140141 setup/teardown overhead.
0 commit comments