sapling/eden/mononoke/cmds
Steven Troxler a70c6755e4 Asyncify prefetch_content code
Summary:
This diff may not have quite the right semantics.

It switches `prefetch_content` to async syntax,
in the process getting rid of the old function `spawn_future`,
which assumes old-style futures, in favor of using
`try_for_each_concurrent` to handle concurrency.

In the process, we were able to remove a couple levels of clones.

I *think* that the old code - in which each call to `spawn_future`
would spin off its own future on the side but then also wait
for completion, and then we buffered - would run at most 256
versions of `prefetch_content_node` at a time, and the current
code is the same. But it's possible that I've either halved or
doubled the concurrency somehow here, if I lost track of the
details.

Reviewed By: krallin

Differential Revision: D20665559

fbshipit-source-id: d95d50093f7a9ea5a04c835baea66e07a7090d14
2020-04-14 10:19:00 -07:00
..
admin mononoke/blobrepo: make RepoBlobstore an actual struct 2020-04-14 03:19:25 -07:00
benchmark_storage_config Make clippy happier with vec initialization in blobstore benchmark 2020-04-13 08:37:59 -07:00
blobrepo_checker/src mononoke/mercurial: remove incorrect FileBytes Extend implementation 2020-03-04 08:51:42 -08:00
blobstore_healer migrate from sql_ext::SqlConstructors to sql_construct 2020-04-02 05:27:16 -07:00
bonsai_verify Asyncify the future in subcommand_hg_manifest_verify 2020-03-26 08:44:59 -07:00
tests migrate from sql_ext::SqlConstructors to sql_construct 2020-04-02 05:27:16 -07:00
aliasverify.rs mononoke: add a test backfill derived data 2020-04-07 08:44:25 -07:00
backfill_derived_data.rs Asyncify prefetch_content code 2020-04-14 10:19:00 -07:00
backfill_git_mapping.rs a small tool to backfill git mappings 2020-03-04 06:08:43 -08:00
benchmark_filestore.rs mononoke/benchmark_filestore: make it work again 2020-03-30 07:32:20 -07:00
blobimport.rs Push compat down one layer in Blobimport::import 2020-04-06 15:26:01 -07:00
configlint.rs migrate from sql_ext::SqlConstructors to sql_construct 2020-04-02 05:27:16 -07:00
dumprev.rs Manual synchronization of fbcode/eden and facebookexperimental/eden 2020-02-11 11:42:43 +01:00
idxdump.rs Manual synchronization of fbcode/eden and facebookexperimental/eden 2020-02-11 11:42:43 +01:00
lfs_import.rs rust: Rename futures_preview:: to futures:: 2020-03-03 11:01:20 -08:00
populate_healer.rs migrate from sql_ext::SqlConstructors to sql_construct 2020-04-02 05:27:16 -07:00
rechunker.rs mononoke: migrate filestore's rechunk API to async/await 2020-03-19 09:24:30 -07:00
revlogrepo.rs Manual synchronization of fbcode/eden and facebookexperimental/eden 2020-02-11 11:42:43 +01:00
statistics_collector.rs mononoke: fix warning 2020-03-27 23:44:42 -07:00
upload_globalrevs.rs pushing compat one level down in upload_globalrevs.rs 2020-03-18 04:18:24 -07:00