mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-26 12:35:32 +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 {
|
struct ostream_params {
|
||||||
int oflag = file::WRONLY | file::CREATE;
|
int oflag = file::WRONLY | file::CREATE;
|
||||||
size_t buffer_size = BUFSIZ;
|
size_t buffer_size = BUFSIZ > 65536 ? BUFSIZ : 65536;
|
||||||
|
|
||||||
ostream_params() {}
|
ostream_params() {}
|
||||||
|
|
||||||
@ -430,7 +430,7 @@ class ostream : private detail::buffer<char> {
|
|||||||
/**
|
/**
|
||||||
Opens a file for writing. Supported parameters passed in `params`:
|
Opens a file for writing. Supported parameters passed in `params`:
|
||||||
* ``<integer>``: Output flags (``file::WRONLY | file::CREATE`` by default)
|
* ``<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>
|
template <typename... T>
|
||||||
inline ostream output_file(cstring_view path, T... params) {
|
inline ostream output_file(cstring_view path, T... params) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user