Commit 8fed77b
committed
perf(tools): wrap SearchConfig in Arc to reduce ToolContext clone cost
ToolContext is cloned on every tool execution. SearchConfig contains a
HashMap which is expensive to clone. Wrapping it in Arc makes the clone
a cheap reference count increment instead of a deep copy.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 63ea7e8 commit 8fed77b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments