Replace O(n×m) regex-based pattern matching with O(k) hierarchical hash map lookup in IntraIOManager. ## Changes **New: StillHammer/topictree library** - Header-only C++17 template library - Zero-copy topic parsing with string_view - Wildcards: `*` (single-level), `.*` (multi-level) - Thread-safe with mutex protection - Comprehensive test suite (10 scenarios) **Modified: IntraIOManager** - Replace RouteEntry vector + regex with TopicTree - Batched logging (every 100 messages) to reduce spam - O(k) lookup where k = topic depth (~3 segments) ## Performance - Before: O(n patterns × m regex ops) per message - After: O(k topic depth) per message - Typical gain: ~33x faster for 100 patterns, depth 3 ## Tests ✅ test_11 (scenarios 1-3): Basic routing, pattern matching, multi-module ✅ test_12: DataNode integration (all 6 tests pass) ⚠️ test_11 (scenario 4+): Batching feature not implemented (out of scope) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| topictree | ||