boostorg / boostorg/log

Consider implementing open file caching in text_multifile_backend

Open
#142 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
211
Forks
113
PR merge metrics
No merged PRs in 30d

Description

It was [reported](https://lists.boost.org/Archives/boost/2021/03/250968.php) that on Windows file open and close operations are much more expensive than on other systems, e.g. Linux. This affects `text_multifile_backend`, which opens and closes a file on every log record.

Consider implementing a cache of the most recently used files, so that the amount of open/close operations is reduced. The cached entries should have a timeout as well, so that the file is eventually closed if it is not used for too long.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.