Is it more CPU-efficient to read/write config file or read/write sqlite database?

dick encore1 at cox.net
Thu Dec 19 00:14:55 CET 2013


On Wed, 18 Dec 2013 12:00:50 -0600, Tim Chase
<python.list at tim.thechases.com> wrote:

>On 2013-12-18 09:49, dick wrote:
>> Don't forget that most hard disks have an option to cache the write
>> data. This is a 'feature' that allows the manufacturers to claim
>> better write performance. You can't be sure when the data is written
>> to the disk if that option is in play.
>
>However, my understanding is that they have a small on-drive
>battery/capacitor that stores sufficient energy for the cached
>write(s) to complete in the event the system's power abruptly cuts
>off.
>
>Granted, this is purely hearsay, as it's been a long time since I
>mucked around with hardware much.
>
>-tkc
>
>
The drives may have something like that now, but they didn't have any
power down flush capability when I was working for WD. Of course, that
was 15 years ago...

Dick



More information about the Python-list mailing list