Cache
Cache
caches the calculation results of another Gain
.
using AUTD3Sharp.Gain;
new Cache(new Null());
NOTE:
Cache
is only effective forGains
with heavy computation, so there is no point in cachingNull
. Be sure to benchmark when usingCache
.