alpaka-group / llama

A Low-Level Abstraction of Memory Access
https://llama-doc.rtfd.io/
Mozilla Public License 2.0
80 stars 10 forks source link

Add a caching mapping for computed mappings #665

Open bernhardmgruber opened 1 year ago

bernhardmgruber commented 1 year ago

Computed mappings have several draw backs, including mainly the use of proxy references. We could introduce a mapping that provides storage again for computed values and acts a cache to the computed values, storing them on construction/first retrieval etc. Such a caching mapping could return l-value references again.