# Typestable caching of multiple arrays with different eltype

**URL:** https://discourse.julialang.org/t/typestable-caching-of-multiple-arrays-with-different-eltype/64197
**Category:** Performance
**Tags:** diffeq
**Created:** [July 7, 2021, 7:13am UTC](https://discourse.julialang.org/t/typestable-caching-of-multiple-arrays-with-different-eltype/64197 "2021-07-07T07:13:42Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [July 7, 2021, 9:50am UTC](https://discourse.julialang.org/t/typestable-caching-of-multiple-arrays-with-different-eltype/64197/2 "2021-07-07T09:50:02Z")

</div>

See @stevengj’s implementation at [FAQ suggestion: lazily allocate buffers for use with automatic differentiation · Issue #769 · SciML/DifferentialEquations.jl · GitHub](https://github.com/SciML/DifferentialEquations.jl/issues/769), and see the diffcache discussion at [ForwardDiff caches usage](https://discourse.julialang.org/t/forwarddiff-caches-usage/64058) . Once JuliaCon videos are done I think it would be good to spawn out a package around this.

---

_[View the full topic](https://discourse.julialang.org/t/typestable-caching-of-multiple-arrays-with-different-eltype/64197)._
