add a comment

Summary: add a comment explaining the sizes are not random anymore

Reviewed By: RajivTS

Differential Revision: D52870668

fbshipit-source-id: b6fa3669d5383dadf6913abe42ab2bdf95202ee0
This commit is contained in:
Liubov Dmitrieva 2024-01-18 06:26:53 -08:00 committed by Facebook GitHub Bot
parent 02d5ba54b4
commit e9f4a03ef4
2 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ use crate::middleware::RequestContext;
use crate::utils::cbor_stream_filtered_errors;
use crate::utils::get_repo;
// The size is optimized for the batching settings in EdenFs.
const MAX_CONCURRENT_FILE_FETCHES_PER_REQUEST: usize = 32;
const MAX_CONCURRENT_UPLOAD_FILENODES_PER_REQUEST: usize = 1000;

View File

@ -62,6 +62,7 @@ use crate::utils::custom_cbor_stream;
use crate::utils::get_repo;
use crate::utils::parse_wire_request;
// The size is optimized for the batching settings in EdenFs.
const MAX_CONCURRENT_TREE_FETCHES_PER_REQUEST: usize = 32;
const MAX_CONCURRENT_METADATA_FETCHES_PER_TREE_FETCH: usize = 100;
const MAX_CONCURRENT_UPLOAD_TREES_PER_REQUEST: usize = 100;