Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vitaut
4 months ago
|
parent
|
context
|
favorite
| on:
Stdio(3) change: FILE is now opaque
With fwrite that would be another level of buffering in addition to FILE's buffer. If you are interested in what {fmt} is doing, a good starting point is
https://github.com/fmtlib/fmt/blob/35dcc58263d6b55419a5932bd...
. It is also possible to bypass stdio completely and get even faster output (
https://vitaut.net/posts/2020/optimal-file-buffer-size/
) and while it is great for files, it may introduce interleaving problems with things like stdout.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: