uv icon indicating copy to clipboard operation
uv copied to clipboard

Adjust concurrent task limits

Open konstin opened this issue 1 year ago • 0 comments

We set limits to the number of concurrent tasks in a number of places. We should revisit them and decide whether these number are good. Increasing them may speed up puffin, but setting them too high may also lead to losses due to synchronization or problems for registries such as pypi

$ rg buffer_unordered
crates/puffin-dev/src/resolve_many.rs
132:        .buffer_unordered(args.num_tasks);

crates/puffin-dev/src/install_many.rs
171:        .buffer_unordered(50)

crates/puffin-resolver/src/finder.rs
102:            .buffer_unordered(32)

crates/puffin-installer/src/downloader.rs
82:            .buffer_unordered(50)
136:            .buffer_unordered(50);

crates/puffin-resolver/src/resolver/mod.rs
730:            .buffer_unordered(50);

konstin avatar Jan 31 '24 12:01 konstin