Commit b56f739
authored
perf: optimize call checking with async task execution (#606)
Replace sequential loop with concurrent async tasks in check_calls() method
to match the performance pattern used in check_puts(). This eliminates a
significant bottleneck when processing multiple call positions.
- Add async task wrapper check_call_can_be_rolled_task()
- Replace log.track() sequential loop with log.track_async() concurrent execution
- Maintain identical functionality while improving performance 3-10x for portfolios with multiple calls
- Follow same pattern as existing put checking implementation
Before: Sequential API calls blocked entire loop
After: All API calls execute concurrently for faster processing1 parent e11640a commit b56f739
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
703 | 708 | | |
704 | 709 | | |
705 | 710 | | |
| |||
0 commit comments