bin: handle thousands of output files

Fixes #534.  Test case is only on next branch.

* bin/common_file.hh, bin/common_file.cc: Make it possible
to reopen a closed file.
* bin/common_output.cc, bin/common_aoutput.cc: Add a heuristic
to decide when to close files.
* NEWS: Mention the issue.
This commit is contained in:
Alexandre Duret-Lutz 2023-07-24 16:56:24 +02:00
parent adca03a30a
commit bd1809f758
5 changed files with 67 additions and 1 deletions

View file

@ -37,6 +37,8 @@ public:
void close(const std::string& name);
void reopen_for_append(const std::string& name);
bool append() const
{
return append_;