@@ -5477,7 +5477,7 @@ Int_t TTree::GetBranchStyle()
5477
5477
// //////////////////////////////////////////////////////////////////////////////
5478
5478
// / Used for automatic sizing of the cache.
5479
5479
// /
5480
- // / Estimates a suitable size for the tree cache based on AutoFlush.
5480
+ // / Estimates a suitable size in bytes for the tree cache based on AutoFlush.
5481
5481
// / A cache sizing factor is taken from the configuration. If this yields zero
5482
5482
// / and withDefault is true the historical algorithm for default size is used.
5483
5483
@@ -8876,14 +8876,18 @@ void TTree::SetBranchStyle(Int_t style)
8876
8876
}
8877
8877
8878
8878
// //////////////////////////////////////////////////////////////////////////////
8879
- // / Set maximum size of the file cache .
8879
+ // / Set maximum size of the file cache (TTreeCache) in bytes .
8880
8880
//
8881
- // / - if cachesize = 0 the existing cache (if any) is deleted.
8881
+ // / - if cachesize = 0 the existing cache (if any) is disabled (deleted if any).
8882
+ // / - if cachesize > 0, the cache is enabled or extended, if necessary
8882
8883
// / - if cachesize = -1 (default) it is set to the AutoFlush value when writing
8883
8884
// / the Tree (default is 30 MBytes).
8884
8885
// /
8885
8886
// / The cacheSize might be clamped, see TFileCacheRead::SetBufferSize
8886
8887
// /
8888
+ // / TTreeCache's 'real' job is to actually prefetch (early grab from disk) the compressed data.
8889
+ // / The cachesize controls the size of the read bytes from disk.
8890
+ // /
8887
8891
// / Returns:
8888
8892
// / - 0 size set, cache was created if possible
8889
8893
// / - -1 on error
@@ -8897,20 +8901,25 @@ Int_t TTree::SetCacheSize(Long64_t cacheSize)
8897
8901
}
8898
8902
8899
8903
// //////////////////////////////////////////////////////////////////////////////
8900
- // / Set the size of the file cache and create it if possible.
8904
+ // / Set the maximum size of the file cache (TTreeCache) in bytes and create it if possible.
8901
8905
// /
8902
8906
// / If autocache is true:
8903
8907
// / this may be an autocreated cache, possibly enlarging an existing
8904
8908
// / autocreated cache. The size is calculated. The value passed in cacheSize:
8905
- // / - cacheSize = 0 make cache if default cache creation is enabled
8909
+ // / - cacheSize = 0 make cache if default cache creation is enabled.
8910
+ // / - cachesize > 0 the cache is enabled or extended, if necessary
8906
8911
// / - cacheSize = -1 make a default sized cache in any case
8907
8912
// /
8908
8913
// / If autocache is false:
8909
8914
// / this is a user requested cache. cacheSize is used to size the cache.
8910
- // / This cache should never be automatically adjusted.
8915
+ // / This cache should never be automatically adjusted. If cachesize is
8916
+ // / 0, the cache is disabled (deleted if any).
8911
8917
// /
8912
8918
// / The cacheSize might be clamped, see TFileCacheRead::SetBufferSize
8913
8919
// /
8920
+ // / TTreeCache's 'real' job is to actually prefetch (early grab from disk) the compressed data.
8921
+ // / The cachesize controls the size of the read bytes from disk.
8922
+ // /
8914
8923
// / Returns:
8915
8924
// / - 0 size set, or existing autosized cache almost large enough.
8916
8925
// / (cache was created if possible)
0 commit comments