-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: spawn concurrent list-repo tasks
Concurrently lookup repositories when caling "list_repos". Because I'm really not an async Rust expert, there's a bunch of unsafe code to allow for immutable references to Self. Avoiding those would be awesome, but even with the unsafe trickery, the speed-up is insane: instead of listing 30 repos with a response time of ~100ms sequentially, we make 30 responses in parallel, which only takes a couple hundred ms in total!
- Loading branch information
1 parent
fbc54b5
commit 36ebef1
Showing
2 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters