dotnet / dotnet/fsharp

Introduce proper compiler-wise caches

Open
#17,790 0 comments 0 reactions 0 assignees View on GitHub
Area-Compiler Continuous Improvement
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

Right now, we mostly use dictionaries (and concurrent dictionaries) for caching.

We need to introduce one compiler-wise cache type(s) with different strategies, and plugged into our activity reporting (reporting metrics, exposed to dotnet-collect and otel), report hits, misses, key collisions, etc.

Implementation is up to whoever is going to do it. MemoryCache is untyped, and isn't designed for storing one type of objects in cache. We might need to implement it ourselves.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.