Commit 1ecfd45
perf: Optimize log type mapping performance in ConsoleLogsService
Move log type mapping logic outside the loop to avoid repeated processing.
Added static Dictionary for MCP-to-Unity log type mappings with case-insensitive
comparison. This improves performance and provides better extensibility for
future log type mappings.
Addresses CodeRabbit review feedback for performance optimization.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent cc2cb1a commit 1ecfd45
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
0 commit comments