Austin L wrote:
Thank you Howard. Turns out my patch was basically the same as compile fix you provided.
I have tried the -DMDB_FIXEDSIZE as you suggested but that has minimal or no improvement to my write speeds. I am still seeing an 8~10 fold decrease in writes speeds on Windows moving from 0.9.35 to 1.0.0.
Reported by my google benchmark test: 0.9.35: bytes_per_second=613.809Mi/s 1.0.0: bytes_per_second=70.3283Mi/s
You can try turning off FILE_FLAG_WRITE_THROUGH on the writes. Change that in the `case MDB_O_OVERLAPPED:` clause.
But other people have reported that using writethrough was faster than using buffered writes with an explicit FlushFileBuffers().