MEDYAN.defer_chem_caching!

Tuple{MEDYAN.Context}

defer_chem_caching!(c::Context)::Nothing

This should only be used for advanced optimizations.

During chemistry, the context mutating functions will typically try to avoid invalidating various cached data needed to quickly sample sites.

However, if you want to mutate the context outside of chemistry, for example right before or after minimization, you may not want to pay the cost of revalidating all the caches because minimization will already invalidate the caches. Caching will be enabled again and caches will be made valid the next time chemistry is run. Caching can also be manually refreshed and reenabled with: refresh_chem_cache!