log icon indicating copy to clipboard operation
log copied to clipboard

Consider implementing open file caching in text_multifile_backend

Open Lastique opened this issue 4 years ago • 0 comments

It was reported 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.

Lastique avatar Mar 04 '21 16:03 Lastique