@@ -24,7 +24,7 @@ required-features = ["blocking-network-client"]
24
24
25
25
[features ]
26
26
27
- default = [" max-performance-safe" , " comfort" , " basic" , " extras" ]
27
+ default = [" max-performance-safe" , " comfort" , " basic" , " extras" , " gix-pack-object-cache-dynamic " ]
28
28
29
29
# ! There are various categories of features which help to optimize performance and build times. `gix` comes with 'batteries included' and everything is
30
30
# ! 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"]
304
304
# # Print debugging information about usage of object database caches, useful for tuning cache sizes.
305
305
cache-efficiency-debug = [" gix-features/cache-efficiency-debug" ]
306
306
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" ]
307
319
308
320
[dependencies ]
309
321
gix-utils = { version = " ^0.3.0" , path = " ../gix-utils" }
@@ -325,9 +337,7 @@ gix-hash = { version = "^0.19.0", path = "../gix-hash" }
325
337
gix-shallow = { version = " ^0.5.0" , path = " ../gix-shallow" }
326
338
gix-object = { version = " ^0.50.2" , path = " ../gix-object" }
327
339
gix-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 }
331
341
gix-revision = { version = " ^0.35.0" , path = " ../gix-revision" , default-features = false }
332
342
gix-revwalk = { version = " ^0.21.0" , path = " ../gix-revwalk" }
333
343
gix-negotiate = { version = " ^0.21.0" , path = " ../gix-negotiate" , optional = true }
0 commit comments