maxmind / geoip-api-c

DEPRECATED GeoIP Legacy C API
Other
371 stars 129 forks source link

Please provide a way for users to mmap databases with different mmap options or madvise settings #77

Closed rafl closed 7 years ago

rafl commented 8 years ago

The mmapping done by this library is currently very opaque to the user. It's not easily possible to give the kernel any hints about memory management using the various mmap flags or madvise on the mmaped region.

Exposing options to do so might allow users to tune the libraries behaviour for their use case.

oschwald commented 7 years ago

We tried this but it ended up causing other issues.