Our great sponsors
-
thanos
Highly available Prometheus setup with long term storage capabilities. A CNCF Incubating project.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Memory mapping is an effective way to bind portion file into memory and using it as it's your own area in the memory. I happen to be a heavy Go user of memory mapping for some time series databases we maintain (Prometheus, Thanos). We even created a useful helper for it (stable, battle-tested, feel free to use https://github.com/prometheus/prometheus/blob/main/tsdb/fileutil/mmap.go#L22).
Memory mapping is an effective way to bind portion file into memory and using it as it's your own area in the memory. I happen to be a heavy Go user of memory mapping for some time series databases we maintain (Prometheus, Thanos). We even created a useful helper for it (stable, battle-tested, feel free to use https://github.com/prometheus/prometheus/blob/main/tsdb/fileutil/mmap.go#L22).