11 ms·
Thank you - it's baffling to me that something as basic as saving some data to a file has become so convoluted!
by pradn 3y ago
Thank you - it's baffling to me that something as basic as saving some data to a file has become so convoluted!
- vlovich123 3y agoIt was always this convoluted because the POSIX APIs suck and the Linux kernel still refuses to provide an API to write large amounts of data transactionally so you have to know the magic incantation for doing it. And note this is when you have all the data up-front. Doing an append is significantly expensive or requires specific filesystem support for reflinks.