cppalliance / NuDB

NuDB: A fast key/value insert-only database for SSD drives in C++11
Boost Software License 1.0
384 stars 59 forks source link

Avoid unnecessary I/O to track files' 'last access' timestamp: #95

Open nbougalis opened 2 years ago

nbougalis commented 2 years ago

Unless the underlying filesystem is mounted with noatime then the system will keep track of and update a file's 'last access' time stamp with every read operation.

Even if the filesystem optimizes this, it makes little sense to track this information for NuDB files that can be accessed tens of thousands of times per second.

If the O_NOATIME option is defined, we set it when attempting to open or create files.

vinniefalco commented 2 years ago

yeah I agree