ITADN

performance improvements

#5Pull Requestorual 创建于 2025-01-06已合并
O
orualcommented
Can pick and choose changes from this, but the important one is avoiding creating additional reqwest clients, because this is slow AF. Here's the flamegraph after a few other modifications (mostly in service of further parallelism and also writing to a string buffer and then printing it at the end so as to keep things ordered correctly) but creating clients per check task. ![flame1](https://github.com/user-attachments/assets/7d3525eb-ef42-4440-9ac4-8fd3caa97aec) And after moving to only creating a single reqwest Client and passing around an Arc of it. ![flame2](https://github.com/user-attachments/assets/d09c84b6-4472-4eae-933e-ef641f0cc678) The latter is almost 10x shorter in terms of samples on the graph, which roughly correlate to execution time, and is noticeably faster to run.
合并状态:已合并 合并于 2025-01-06 关闭于 2025-01-06 0 条评论