allow disabling dirty page purging via an API, and consider disabling it by default #18236
Labels
A-allocators
Area: Custom and system allocators
E-hard
Call for participation: Hard difficulty. Experience needed to fix: A lot.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
Ratio-based dirty page purging reduces memory usage, but results in a significant performance hit. It is already possible to disable it by exporting an environment variable, but it should be possible to toggle it or alter the ratio at runtime. It may make sense to have it disabled by default because it's not desirable in short-lived applications or those with consistent memory allocation patterns.
It's primarily desirable in large, long-lived applications with varying memory usage patterns where opting into a feature is not a big deal. The defaults should likely be optimized for programming in the small.
The text was updated successfully, but these errors were encountered: