mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
dbf37904d4
Summary: Add a `prefetch` method to the `TreeStore` trait. This will be used by code using the store to signal that certain keys will be accessed soon. The default implementation is a no-op, but in the case of stores where prefetching makes sense (such as stores backed by remote servers), the default implementation can be overridden to include the appropriate prefetching logic. For now, this change is a no-op, but later in this stack it will be used to signal to the underlying Python data store to perform the appropriate tree fetches via the Eden API. This will be used to support a more efficient pattern of bulk tree fetches during the diff operation. Reviewed By: sfilipco Differential Revision: D17276970 fbshipit-source-id: 22a5d847e5be5dbf1b0a74b47587a98d840b8cdc |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |