Repository navigation
Commit 4c466c9
committed
perf(shared): keep only short labels in the tool-name cache
The tool-name cache bounded its entry count but not key size. ACP tool
titles can carry whole commands, so up to 10,000 long strings could stay in
the module-level map until the next clear. Labels over 256 characters are
now parsed without being cached; real T3 MCP tool names are far shorter, so
the rows the cache was for still hit it.1 parent a32a754 commit 4c466c9
1 file changed
Lines changed: 3 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
384 | 385 | | |
385 | 386 | | |
| 387 | + | |
386 | 388 | | |
387 | 389 | | |
| 390 | + | |
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
| |||
0 commit comments