Introduce the MaxMemory struct that defaults to 2/3 of the available memory

This commit is contained in:
Clément Renault
2021-09-02 18:18:59 +02:00
parent 24e84d7ca1
commit b092a624ed
4 changed files with 90 additions and 12 deletions

18
Cargo.lock generated
View File

@ -1647,6 +1647,7 @@ dependencies = [
"siphasher",
"slice-group-by",
"structopt",
"sysinfo 0.20.0",
"tar",
"tempdir",
"tempfile",
@ -1739,7 +1740,7 @@ dependencies = [
"slice-group-by",
"smallstr",
"smallvec",
"sysinfo",
"sysinfo 0.19.2",
"tempfile",
"uuid",
]
@ -2859,6 +2860,21 @@ dependencies = [
"winapi",
]
[[package]]
name = "sysinfo"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0af066e6272f2175c1783cfc2ebf3e2d8dfe2c182b00677fdeccbf8291af83fb"
dependencies = [
"cfg-if 1.0.0",
"core-foundation-sys",
"libc",
"ntapi",
"once_cell",
"rayon",
"winapi",
]
[[package]]
name = "tar"
version = "0.4.35"