mirror of
https://github.com/usestrix/strix.git
synced 2026-10-16 04:28:23 +00:00
- Replace char-by-char iterative string loops in _take_prefix and _take_suffix with direct UTF-8 byte slicing and boundary-safe decoding (errors='ignore').
- Eliminate eager text.split('\n') heap allocations in _head_tail, checking line thresholds lazily via text.count('\n') + 1 and bounded splits.
- Prevent intermediate Python byte/string allocations on oversized command and scan tool outputs.
- Add unit tests for multi-byte boundary cuts, lazy line splitting, and scaling.
|
||
|---|---|---|
| .. | ||
| agents | ||
| config | ||
| core | ||
| interface | ||
| llm | ||
| report | ||
| runtime | ||
| skills | ||
| telemetry | ||
| tools | ||
| utils | ||
| __init__.py | ||