-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the thread pool from
future::Cache
Clean up dependencies and feature flags.
- Loading branch information
1 parent
0d65e4b
commit d637ecf
Showing
8 changed files
with
54 additions
and
35 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
pub(crate) const MAX_SYNC_REPEATS: usize = 4; | ||
pub(crate) const PERIODICAL_SYNC_INITIAL_DELAY_MILLIS: u64 = 500; | ||
pub(crate) const PERIODICAL_SYNC_NORMAL_PACE_MILLIS: u64 = 300; | ||
pub(crate) const PERIODICAL_SYNC_FAST_PACE_NANOS: u64 = 500; | ||
|
||
pub(crate) const READ_LOG_FLUSH_POINT: usize = 512; | ||
pub(crate) const READ_LOG_SIZE: usize = READ_LOG_FLUSH_POINT * (MAX_SYNC_REPEATS + 2); | ||
|
||
pub(crate) const WRITE_LOG_FLUSH_POINT: usize = 512; | ||
pub(crate) const WRITE_LOG_LOW_WATER_MARK: usize = WRITE_LOG_FLUSH_POINT / 2; | ||
// pub(crate) const WRITE_LOG_HIGH_WATER_MARK: usize = WRITE_LOG_FLUSH_POINT * (MAX_SYNC_REPEATS - 1); | ||
pub(crate) const WRITE_LOG_SIZE: usize = WRITE_LOG_FLUSH_POINT * (MAX_SYNC_REPEATS + 2); | ||
|
||
#[cfg(feature = "sync")] | ||
pub(crate) const WRITE_LOG_LOW_WATER_MARK: usize = WRITE_LOG_FLUSH_POINT / 2; | ||
|
||
#[cfg(feature = "sync")] | ||
pub(crate) const WRITE_RETRY_INTERVAL_MICROS: u64 = 50; | ||
|
||
#[cfg(feature = "sync")] | ||
pub(crate) const PERIODICAL_SYNC_NORMAL_PACE_MILLIS: u64 = 300; | ||
|
||
#[cfg(feature = "sync")] | ||
pub(crate) const PERIODICAL_SYNC_FAST_PACE_NANOS: u64 = 500; |
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
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