Commit 0d42787
perf: eliminate redundant getattr calls in token metrics collection
- Remove duplicate llm variable definitions in aexecute_task and execute_task
- Reuse existing llm variable instead of redefining with getattr calls
- Reduces function call overhead without changing functionality
- Addresses code duplication identified in PR review
Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>1 parent 10e58e0 commit 0d42787
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
| |||
774 | 773 | | |
775 | 774 | | |
776 | 775 | | |
777 | | - | |
778 | 776 | | |
779 | 777 | | |
780 | 778 | | |
| |||
0 commit comments