Commit 1d83eb7
committed
fix: address cubic AI review feedback
- Use accumulator with extend() instead of list concatenation to avoid
quadratic CPU/memory churn on large paginated listings
- Absorb final aggregated tools result as complete to prune stale session
state (x-mcp-header maps and output schemas)
Fixes cubic review comments on PR #3156
Signed-off-by: dongjiang <dongjiang1989@126.com>1 parent c617269 commit 1d83eb7
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
995 | 998 | | |
996 | 999 | | |
997 | 1000 | | |
998 | 1001 | | |
999 | 1002 | | |
1000 | 1003 | | |
1001 | 1004 | | |
1002 | | - | |
| 1005 | + | |
1003 | 1006 | | |
1004 | 1007 | | |
1005 | 1008 | | |
| 1009 | + | |
1006 | 1010 | | |
1007 | 1011 | | |
1008 | 1012 | | |
| |||
1014 | 1018 | | |
1015 | 1019 | | |
1016 | 1020 | | |
1017 | | - | |
| 1021 | + | |
1018 | 1022 | | |
1019 | 1023 | | |
1020 | 1024 | | |
1021 | 1025 | | |
1022 | 1026 | | |
| 1027 | + | |
| 1028 | + | |
1023 | 1029 | | |
1024 | 1030 | | |
1025 | 1031 | | |
| |||
0 commit comments