mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-10 06:20:09 +00:00
Increase the default buffer size
This commit is contained in:
parent
0b6e7cc60a
commit
57f462428d
@ -357,7 +357,7 @@ struct buffer_size {
|
||||
|
||||
struct ostream_params {
|
||||
int oflag = file::WRONLY | file::CREATE;
|
||||
size_t buffer_size = BUFSIZ;
|
||||
size_t buffer_size = BUFSIZ > 65536 ? BUFSIZ : 65536;
|
||||
|
||||
ostream_params() {}
|
||||
|
||||
@ -430,7 +430,7 @@ class ostream : private detail::buffer<char> {
|
||||
/**
|
||||
Opens a file for writing. Supported parameters passed in `params`:
|
||||
* ``<integer>``: Output flags (``file::WRONLY | file::CREATE`` by default)
|
||||
* ``buffer_size=<integer>``: Output buffer size (``BUFSIZ`` by default)
|
||||
* ``buffer_size=<integer>``: Output buffer size
|
||||
*/
|
||||
template <typename... T>
|
||||
inline ostream output_file(cstring_view path, T... params) {
|
||||
|
Loading…
Reference in New Issue
Block a user