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:
parent
adca03a30a
commit
bd1809f758
5 changed files with 67 additions and 1 deletions
|
|
@ -37,6 +37,8 @@ public:
|
|||
|
||||
void close(const std::string& name);
|
||||
|
||||
void reopen_for_append(const std::string& name);
|
||||
|
||||
bool append() const
|
||||
{
|
||||
return append_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue