130
130
target_space::ClimaCore.Spaces.AbstractSpace;
131
131
start_date::Dates.DateTime = Dates.DateTime(1979, 1, 1),
132
132
regridder_type = nothing,
133
- cache_max_size::Int = 128 ,
133
+ cache_max_size::Int = 2 ,
134
134
regridder_kwargs = (),
135
135
file_reader_kwargs = ())
136
136
@@ -144,7 +144,9 @@ different files.
144
144
the latter case, the entries of `file_paths` and `varnames` are expected to match based on
145
145
position.
146
146
147
- The DataHandler maintains an LRU cache of Fields that were previously computed.
147
+ The DataHandler maintains an LRU cache of Fields that were previously computed. The default
148
+ size for the cache is only two fields, so if you expect to re-use the same fields often,
149
+ increasing the cache size can lead to improved performances.
148
150
149
151
Creating this object results in the file being accessed (to preallocate some memory).
150
152
@@ -202,7 +204,7 @@ function DataHandling.DataHandler(
202
204
target_space:: ClimaCore.Spaces.AbstractSpace ;
203
205
start_date:: Union{Dates.DateTime, Dates.Date} = Dates. DateTime (1979 , 1 , 1 ),
204
206
regridder_type = nothing ,
205
- cache_max_size:: Int = 128 ,
207
+ cache_max_size:: Int = 2 ,
206
208
regridder_kwargs = (),
207
209
file_reader_kwargs = (),
208
210
compose_function = identity,
0 commit comments