Optimize performance
optimize_performanceIdentify slow nodes in a network and get suggestions to improve cook times. Optionally lower resolution of flagged TOPs to reduce GPU load.
Instructions
Scan a network for cook-time bottlenecks and (optionally) fix them. By default it reports the slowest nodes with a concrete suggestion each. With apply:true it lowers the resolution of the flagged TOPs by scale to claw back GPU time. Run get_td_performance first if you just want the numbers; use this to act on them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Network to analyze (recursively). | /project1 |
| threshold_ms | No | Flag nodes whose last cook took at least this many milliseconds. | |
| apply | No | If true, actually lower the resolution of the flagged TOPs by `scale`. Default false = just report the bottlenecks and suggestions. | |
| scale | No | (apply) Resolution multiplier for flagged TOPs (0.5 = half on each axis). |