@@ -24,7 +24,7 @@ required-features = ["blocking-network-client"]
2424
2525[features ]
2626
27- default = [" max-performance-safe" , " comfort" , " basic" , " extras" ]
27+ default = [" max-performance-safe" , " comfort" , " basic" , " extras" , " gix-pack-object-cache-dynamic " ]
2828
2929# ! There are various categories of features which help to optimize performance and build times. `gix` comes with 'batteries included' and everything is
3030# ! enabled as long as it doesn't sacrifice compatibility. Most users will be fine with that but will pay with higher compile times than necessary as they
@@ -304,6 +304,18 @@ progress-tree = ["prodash/progress-tree"]
304304# # Print debugging information about usage of object database caches, useful for tuning cache sizes.
305305cache-efficiency-debug = [" gix-features/cache-efficiency-debug" ]
306306
307+ # # Control gix-pack caching behavior
308+ # # Provide a fixed-size allocation-free LRU cache for packs. It's useful if caching is desired while keeping the memory footprint
309+ # # for the LRU-cache itself low.
310+ gix-pack-pack-cache-lru-static = [" gix-pack/pack-cache-lru-static" ]
311+
312+ # # Control gix-pack caching behavior
313+ # # Provide a hash-map based LRU cache whose eviction is based a memory cap calculated from object data.
314+ gix-pack-pack-cache-lru-dynamic = [" gix-pack/pack-cache-lru-dynamic" ]
315+
316+ # # Control gix-pack caching behavior
317+ # # If set, select algorithms may additionally use a full-object cache which is queried before the pack itself.
318+ gix-pack-object-cache-dynamic = [" gix-pack/object-cache-dynamic" ]
307319
308320[dependencies ]
309321gix-utils = { version = " ^0.3.0" , path = " ../gix-utils" }
@@ -325,9 +337,7 @@ gix-hash = { version = "^0.19.0", path = "../gix-hash" }
325337gix-shallow = { version = " ^0.5.0" , path = " ../gix-shallow" }
326338gix-object = { version = " ^0.50.2" , path = " ../gix-object" }
327339gix-actor = { version = " ^0.35.4" , path = " ../gix-actor" }
328- gix-pack = { version = " ^0.60.0" , path = " ../gix-pack" , default-features = false , features = [
329- " object-cache-dynamic" ,
330- ] }
340+ gix-pack = { version = " ^0.60.0" , path = " ../gix-pack" , default-features = false }
331341gix-revision = { version = " ^0.35.0" , path = " ../gix-revision" , default-features = false }
332342gix-revwalk = { version = " ^0.21.0" , path = " ../gix-revwalk" }
333343gix-negotiate = { version = " ^0.21.0" , path = " ../gix-negotiate" , optional = true }
0 commit comments