Boo0ns / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Add a buffered FILE_WRITE mode for the SD card File.open() function. #483

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What change would like to see?

There should be a FILE_WRITE_BUFFERED or similar mode for the SD card, that 
doesn't include the O_SYNC flag.

Why?

It gives significant performance benefits if you're writing lots of data.

Would this cause any incompatibilities with previous versions?  If so, how
can these be mitigated?

You can also use File.flush() to explicitly sync changes to the SD card.

Original issue reported on code.google.com by dmel...@gmail.com on 18 Feb 2011 at 3:25

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/e031022a68f641439ebdc0abf533bab38ad9bc
d6

Original comment by dmel...@gmail.com on 25 Feb 2011 at 11:45